	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_acpi_new_device            ## -- Begin function i2c_acpi_new_device
	.p2align	4, 0x90
_i2c_acpi_new_device:                   ## @i2c_acpi_new_device
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_resource_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	%rbx, %rdi
	callq	_ACPI_COMPANION
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r14, -40(%rbp)
	movq	%rbx, %rdi
	callq	_acpi_device_handle
	movl	%eax, -48(%rbp)
	movl	%r15d, -56(%rbp)
	movq	_i2c_acpi_fill_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_resource_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rcx
	callq	_acpi_dev_get_resources
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_resource_list@GOTPCREL(%rip), %rdi
	callq	_acpi_dev_free_resource_list
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.5:
	movl	-52(%rbp), %edi
	callq	_i2c_acpi_find_adapter_by_handle
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_i2c_new_device
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movl	%eax, %edi
	jmp	LBB0_10
LBB0_4:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_10:
	callq	_ERR_PTR
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_resource_list,4,2              ## @resource_list
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_i2c_acpi_fill_info,4,2         ## @i2c_acpi_fill_info
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_acpi_new_device            ; -- Begin function i2c_acpi_new_device
	.p2align	2
_i2c_acpi_new_device:                   ; @i2c_acpi_new_device
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _resource_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _resource_list@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LIST_HEAD
	mov	x0, x21
	bl	_ACPI_COMPANION
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x19, [sp, #24]
	mov	x0, x21
	bl	_acpi_device_handle
	str	w0, [sp, #16]
	str	w20, [sp, #8]
Lloh3:
	adrp	x8, _i2c_acpi_fill_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _i2c_acpi_fill_info@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, _resource_list@GOTPAGE
Lloh7:
	ldr	x1, [x1, _resource_list@GOTPAGEOFF]
	add	x3, sp, #8
	mov	x0, x21
	bl	_acpi_dev_get_resources
	tbnz	w0, #31, LBB0_10
; %bb.2:
Lloh8:
	adrp	x0, _resource_list@GOTPAGE
Lloh9:
	ldr	x0, [x0, _resource_list@GOTPAGEOFF]
	bl	_acpi_dev_free_resource_list
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_i2c_acpi_find_adapter_by_handle
	cbz	x0, LBB0_8
; %bb.4:
	mov	x1, x19
	bl	_i2c_new_device
	cbnz	x0, LBB0_11
; %bb.5:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_7:
Lloh15:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	bl	_ERR_PTR
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_resource_list,4,2              ; @resource_list
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_i2c_acpi_fill_info,4,2         ; @i2c_acpi_fill_info
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
