	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_unbind_one
_acpi_unbind_one:                       ## @acpi_unbind_one
	.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, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	callq	_acpi_get_physical_device
	cmpq	%rbx, %rax
	je	LBB0_2
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_put_device
	movq	(%rbx), %rdi
	leaq	-16(%rbp), %rsi
	callq	_acpi_bus_get_device
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sysfs_remove_link
	movq	-16(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sysfs_remove_link
LBB0_4:
	movq	(%rbx), %rdi
	movq	_acpi_glue_data_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_acpi_detach_data
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_put_device
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware_node"

L_.str.1:                               ## @.str.1
	.asciz	"physical_node"

	.comm	_acpi_glue_data_handler,4,2     ## @acpi_glue_data_handler
L_.str.2:                               ## @.str.2
	.asciz	"Oops, 'acpi_handle' corrupt\n"

	.no_dead_strip	_acpi_unbind_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_unbind_one
_acpi_unbind_one:                       ; @acpi_unbind_one
	.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	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_6
; %bb.1:
	bl	_acpi_get_physical_device
	cmp	x0, x19
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_put_device
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	cbnz	w0, LBB0_5
; %bb.4:
	add	x0, x19, #8
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sysfs_remove_link
	ldr	x0, [sp, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sysfs_remove_link
LBB0_5:
	ldr	x0, [x19]
Lloh6:
	adrp	x8, _acpi_glue_data_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _acpi_glue_data_handler@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_acpi_detach_data
	str	xzr, [x19]
	mov	x0, x19
	bl	_put_device
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware_node"

l_.str.1:                               ; @.str.1
	.asciz	"physical_node"

	.comm	_acpi_glue_data_handler,4,2     ; @acpi_glue_data_handler
l_.str.2:                               ; @.str.2
	.asciz	"Oops, 'acpi_handle' corrupt\n"

	.no_dead_strip	_acpi_unbind_one
.subsections_via_symbols
