	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_first_subrange
_stb0899_first_subrange:                ## @stb0899_first_subrange
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	$0, -28(%rbp)
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_stb0899_i2c_gate_ctrl
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*(%r14)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_stb0899_i2c_gate_ctrl
	movl	-28(%rbp), %r15d
	movq	%rbx, %rdi
	callq	_stb0899_carr_width
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r15d
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.3:
	movl	48(%rbx), %edi
	movl	%r15d, %esi
	callq	_min
	movq	%rax, %r14
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r14, 40(%rbx)
	movl	16(%rbx), %eax
	movl	%eax, 36(%rbx)
	movq	$0, 24(%rbx)
	movl	$1, 32(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stb0899_first_subrange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_first_subrange
_stb0899_first_subrange:                ; @stb0899_first_subrange
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	str	wzr, [sp, #12]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_stb0899_i2c_gate_ctrl
	ldr	x8, [x20]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	mov	x0, x19
	mov	w1, #0
	bl	_stb0899_i2c_gate_ctrl
	ldr	w20, [sp, #12]
	mov	x0, x19
	bl	_stb0899_carr_width
	cmp	w0, #0
	cinc	w8, w0, lt
	sub	w1, w20, w8, asr #1
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x19, #48]
	bl	_min
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	str	x0, [x19, #40]
	ldr	w8, [x19, #16]
	str	xzr, [x19, #24]
	mov	w9, #1
	stp	w9, w8, [x19, #32]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stb0899_first_subrange
.subsections_via_symbols
