	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_acpi_get_irq               ## -- Begin function i2c_acpi_get_irq
	.p2align	4, 0x90
_i2c_acpi_get_irq:                      ## @i2c_acpi_get_irq
	.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
	callq	_ACPI_COMPANION
	movq	%rax, %r14
	movq	_ENOENT@GOTPCREL(%rip), %r15
	xorl	%eax, %eax
	subl	(%r15), %eax
	movl	%eax, -28(%rbp)
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	_i2c_acpi_add_resource@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_acpi_dev_get_resources
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	leaq	-32(%rbp), %rdi
	callq	_acpi_dev_free_resource_list
	movl	-28(%rbp), %eax
	movl	(%r15), %ecx
	addl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_acpi_dev_gpio_irq_get
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_i2c_acpi_add_resource,4,2      ## @i2c_acpi_add_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_acpi_get_irq               ; -- Begin function i2c_acpi_get_irq
	.p2align	2
_i2c_acpi_get_irq:                      ; @i2c_acpi_get_irq
	.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
	bl	_ACPI_COMPANION
	mov	x19, x0
Lloh0:
	adrp	x20, _ENOENT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENOENT@GOTPAGEOFF]
	ldr	w8, [x20]
	neg	w8, w8
	str	w8, [sp, #4]
	add	x0, sp, #8
	bl	_INIT_LIST_HEAD
Lloh2:
	adrp	x8, _i2c_acpi_add_resource@GOTPAGE
Lloh3:
	ldr	x8, [x8, _i2c_acpi_add_resource@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x1, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	bl	_acpi_dev_get_resources
	tbnz	w0, #31, LBB0_3
; %bb.1:
	add	x0, sp, #8
	bl	_acpi_dev_free_resource_list
	ldr	w0, [sp, #4]
	ldr	w8, [x20]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_acpi_dev_gpio_irq_get
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_i2c_acpi_add_resource,4,2      ; @i2c_acpi_add_resource
.subsections_via_symbols
