	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_gpiochip_request_interrupts ## -- Begin function acpi_gpiochip_request_interrupts
	.p2align	4, 0x90
_acpi_gpiochip_request_interrupts:      ## @acpi_gpiochip_request_interrupts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rax
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.1:
	cmpl	$0, 4(%rax)
	je	LBB0_7
## %bb.2:
	callq	_ACPI_HANDLE
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %ebx
	movq	_acpi_gpio_chip_dh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	movl	%ebx, %edi
	callq	_acpi_get_data
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	_acpi_gpiochip_alloc_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_acpi_walk_resources
	movq	_acpi_gpio_deferred_req_irqs_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_acpi_gpio_deferred_req_irqs_done@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.6:
	movq	_acpi_gpio_deferred_req_irqs_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	-16(%rbp), %rdi
	callq	_acpi_gpiochip_request_irqs
	jmp	LBB0_7
LBB0_5:
	movq	-16(%rbp), %rdi
	movq	_acpi_gpio_deferred_req_irqs_list@GOTPCREL(%rip), %rsi
	callq	_list_add
	movq	_acpi_gpio_deferred_req_irqs_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_gpio_chip_dh,4,2          ## @acpi_gpio_chip_dh
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_AEI"

	.comm	_acpi_gpiochip_alloc_event,4,2  ## @acpi_gpiochip_alloc_event
	.comm	_acpi_gpio_deferred_req_irqs_lock,4,2 ## @acpi_gpio_deferred_req_irqs_lock
	.comm	_acpi_gpio_deferred_req_irqs_done,4,2 ## @acpi_gpio_deferred_req_irqs_done
	.comm	_acpi_gpio_deferred_req_irqs_list,4,2 ## @acpi_gpio_deferred_req_irqs_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_gpiochip_request_interrupts ; -- Begin function acpi_gpiochip_request_interrupts
	.p2align	2
_acpi_gpiochip_request_interrupts:      ; @acpi_gpiochip_request_interrupts
	.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
	mov	x8, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_7
; %bb.1:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_7
; %bb.2:
	bl	_ACPI_HANDLE
	cbz	w0, LBB0_7
; %bb.3:
	mov	x19, x0
Lloh0:
	adrp	x8, _acpi_gpio_chip_dh@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_gpio_chip_dh@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_acpi_get_data
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _acpi_gpiochip_alloc_event@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_gpiochip_alloc_event@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	x3, [sp, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_acpi_walk_resources
Lloh8:
	adrp	x0, _acpi_gpio_deferred_req_irqs_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _acpi_gpio_deferred_req_irqs_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh10:
	adrp	x8, _acpi_gpio_deferred_req_irqs_done@GOTPAGE
Lloh11:
	ldr	x8, [x8, _acpi_gpio_deferred_req_irqs_done@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, _acpi_gpio_deferred_req_irqs_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _acpi_gpio_deferred_req_irqs_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x0, [sp, #8]
	bl	_acpi_gpiochip_request_irqs
	b	LBB0_7
LBB0_6:
	ldr	x0, [sp, #8]
Lloh15:
	adrp	x1, _acpi_gpio_deferred_req_irqs_list@GOTPAGE
Lloh16:
	ldr	x1, [x1, _acpi_gpio_deferred_req_irqs_list@GOTPAGEOFF]
	bl	_list_add
Lloh17:
	adrp	x0, _acpi_gpio_deferred_req_irqs_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _acpi_gpio_deferred_req_irqs_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_gpio_chip_dh,4,2          ; @acpi_gpio_chip_dh
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_AEI"

	.comm	_acpi_gpiochip_alloc_event,4,2  ; @acpi_gpiochip_alloc_event
	.comm	_acpi_gpio_deferred_req_irqs_lock,4,2 ; @acpi_gpio_deferred_req_irqs_lock
	.comm	_acpi_gpio_deferred_req_irqs_done,4,2 ; @acpi_gpio_deferred_req_irqs_done
	.comm	_acpi_gpio_deferred_req_irqs_list,4,2 ; @acpi_gpio_deferred_req_irqs_list
.subsections_via_symbols
