	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_acpi_do_lookup
_i2c_acpi_do_lookup:                    ## @i2c_acpi_do_lookup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rsi), %r14
	callq	_acpi_bus_get_status
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.2:
	movq	_i2c_acpi_ignored_device_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_acpi_match_device_ids
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_acpi_device_handle
	movl	%eax, (%r15)
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movq	_i2c_acpi_fill_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rcx
	callq	_acpi_dev_get_resources
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_acpi_dev_free_resource_list
	testl	%r15d, %r15d
	js	LBB0_6
## %bb.5:
	cmpl	$0, (%r14)
	jne	LBB0_8
	jmp	LBB0_6
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_i2c_acpi_ignored_device_ids,4,2 ## @i2c_acpi_ignored_device_ids
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_i2c_acpi_fill_info,4,2         ## @i2c_acpi_fill_info
	.no_dead_strip	_i2c_acpi_do_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_acpi_do_lookup
_i2c_acpi_do_lookup:                    ; @i2c_acpi_do_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x1, #8]
	bl	_acpi_bus_get_status
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	w8, [x21]
	cbz	w8, LBB0_1
; %bb.5:
Lloh2:
	adrp	x8, _i2c_acpi_ignored_device_ids@GOTPAGE
Lloh3:
	ldr	x8, [x8, _i2c_acpi_ignored_device_ids@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_acpi_match_device_ids
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x21
	bl	_acpi_device_handle
	str	w0, [x20]
	add	x0, sp, #8
	bl	_INIT_LIST_HEAD
Lloh5:
	adrp	x8, _i2c_acpi_fill_info@GOTPAGE
Lloh6:
	ldr	x8, [x8, _i2c_acpi_fill_info@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x21
	mov	x3, x20
	bl	_acpi_dev_get_resources
	mov	x20, x0
	add	x0, sp, #8
	bl	_acpi_dev_free_resource_list
	tbnz	w20, #31, LBB0_1
; %bb.7:
	ldr	w8, [x19]
	cbz	w8, LBB0_1
; %bb.8:
	mov	w0, #0
	b	LBB0_3
LBB0_9:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_i2c_acpi_ignored_device_ids,4,2 ; @i2c_acpi_ignored_device_ids
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_i2c_acpi_fill_info,4,2         ; @i2c_acpi_fill_info
	.no_dead_strip	_i2c_acpi_do_lookup
.subsections_via_symbols
