	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_acpi_get_info
_i2c_acpi_get_info:                     ## @i2c_acpi_get_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-72(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r14, -56(%rbp)
	movl	$-1, -72(%rbp)
	movq	%r12, %rdi
	callq	_acpi_device_enumerated
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	callq	_i2c_acpi_do_lookup
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testq	%r13, %r13
	je	LBB0_8
## %bb.4:
	movq	%r13, %rdi
	callq	_ACPI_HANDLE
	cmpq	-64(%rbp), %rax
	jne	LBB0_11
LBB0_5:
	movq	%r12, %rdi
	callq	_acpi_fwnode_handle
	movl	%eax, 4(%r14)
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	-64(%rbp), %rax
	movq	%rax, (%r15)
LBB0_7:
	movq	%r12, %rdi
	callq	_dev_name
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_acpi_set_modalias
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_8:
	movq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_acpi_bus_get_device
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rdi
	callq	_acpi_bus_get_status
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_5
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_i2c_acpi_get_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_get_info
_i2c_acpi_get_info:                     ; @i2c_acpi_get_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x20, [sp, #24]
	mov	w8, #-1
	str	w8, [sp, #8]
	mov	x0, x19
	bl	_acpi_device_enumerated
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_i2c_acpi_do_lookup
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	cbz	x22, LBB0_10
; %bb.6:
	mov	x0, x22
	bl	_ACPI_HANDLE
	ldr	x8, [sp, #16]
	cmp	x0, x8
	b.ne	LBB0_13
LBB0_7:
	mov	x0, x19
	bl	_acpi_fwnode_handle
	str	w0, [x20, #4]
	cbz	x21, LBB0_9
; %bb.8:
	ldr	x8, [sp, #16]
	str	x8, [x21]
LBB0_9:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #4
	bl	_acpi_set_modalias
	mov	w0, #0
	b	LBB0_4
LBB0_10:
	ldr	x0, [sp, #16]
	mov	x1, sp
	bl	_acpi_bus_get_device
	cbnz	x0, LBB0_13
; %bb.11:
	ldr	x0, [sp]
	bl	_acpi_bus_get_status
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	x8, [sp]
	ldr	w8, [x8, #4]
	cbnz	w8, LBB0_7
LBB0_13:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_i2c_acpi_get_info
.subsections_via_symbols
