	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_acpi_fill_info
_i2c_acpi_fill_info:                    ## @i2c_acpi_fill_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	24(%rsi), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_1
LBB0_7:
	movl	$1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	leaq	-24(%rbp), %rsi
	callq	_i2c_acpi_get_i2c_resource
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movl	(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %ecx
	leal	1(%rcx), %edx
	movl	%edx, 16(%rbx)
	cmpl	%eax, %ecx
	jne	LBB0_7
LBB0_4:
	movl	12(%rbx), %edi
	movq	-24(%rbp), %rax
	movl	24(%rax), %esi
	leaq	8(%rbx), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	-24(%rbp), %rax
	movq	16(%rax), %rcx
	movq	%rcx, 8(%r14)
	movl	8(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movq	(%rax), %rax
	movq	_ACPI_I2C_10BIT_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_I2C_CLIENT_TEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_I2C_10BIT_MODE,8,3        ## @ACPI_I2C_10BIT_MODE
	.comm	_I2C_CLIENT_TEN,4,2             ## @I2C_CLIENT_TEN
	.no_dead_strip	_i2c_acpi_fill_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_acpi_fill_info
_i2c_acpi_fill_info:                    ; @i2c_acpi_fill_info
	.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
	ldr	x20, [x1, #24]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	mov	x19, x1
	add	x1, sp, #8
	bl	_i2c_acpi_get_i2c_resource
	cbz	w0, LBB0_1
; %bb.3:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x19, #16]
	add	w10, w9, #1
	str	w10, [x19, #16]
	cmp	w9, w8
	b.ne	LBB0_1
LBB0_5:
	ldr	w0, [x19, #12]
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #24]
	add	x2, x19, #8
	bl	_acpi_get_handle
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_1
; %bb.6:
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #16]
	str	x9, [x20, #8]
	ldr	w9, [x8, #8]
	str	w9, [x19, #4]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ACPI_I2C_10BIT_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_I2C_10BIT_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.7:
Lloh3:
	adrp	x8, _I2C_CLIENT_TEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_CLIENT_TEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_I2C_10BIT_MODE,8,3        ; @ACPI_I2C_10BIT_MODE
	.comm	_I2C_CLIENT_TEN,4,2             ; @I2C_CLIENT_TEN
	.no_dead_strip	_i2c_acpi_fill_info
.subsections_via_symbols
