	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_gpiochip_remove           ## -- Begin function acpi_gpiochip_remove
	.p2align	4, 0x90
_acpi_gpiochip_remove:                  ## @acpi_gpiochip_remove
	.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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.2:
	callq	_ACPI_HANDLE
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r14d
	movq	_acpi_gpio_chip_dh@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-32(%rbp), %rdx
	movl	%eax, %edi
	callq	_acpi_get_data
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_6
LBB0_5:
	movq	-32(%rbp), %rdi
	callq	_acpi_gpiochip_free_regions
	movl	(%r15), %esi
	movl	%r14d, %edi
	callq	_acpi_detach_data
	movq	-32(%rbp), %rdi
	callq	_kfree
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	"Failed to retrieve ACPI GPIO chip\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_gpiochip_remove           ; -- Begin function acpi_gpiochip_remove
	.p2align	2
_acpi_gpiochip_remove:                  ; @acpi_gpiochip_remove
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_6
; %bb.2:
	bl	_ACPI_HANDLE
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x21, _acpi_gpio_chip_dh@GOTPAGE
Lloh1:
	ldr	x21, [x21, _acpi_gpio_chip_dh@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #8
	bl	_acpi_get_data
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_6
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_acpi_gpiochip_free_regions
	ldr	w1, [x21]
	mov	x0, x20
	bl	_acpi_detach_data
	ldr	x0, [sp, #8]
	bl	_kfree
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_gpio_chip_dh,4,2          ; @acpi_gpio_chip_dh
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to retrieve ACPI GPIO chip\n"

.subsections_via_symbols
