	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bind_one
_acpi_bind_one:                         ## @acpi_bind_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %rbx
	movq	%r14, %rdi
	callq	_get_device
	movq	_acpi_glue_data_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_acpi_attach_data
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_put_device
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, 8(%r14)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_acpi_bus_get_device
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	-24(%rbp), %rsi
	addq	$16, %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_sysfs_create_link
	movq	-24(%rbp), %rdi
	addq	$16, %rdi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rsi
	callq	_sysfs_create_link
	movq	-24(%rbp), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_set_wakeup_capable
	movq	-24(%rbp), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_device_set_wakeup_enable
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Drivers changed 'acpi_handle'\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_acpi_glue_data_handler,4,2     ## @acpi_glue_data_handler
L_.str.1:                               ## @.str.1
	.asciz	"firmware_node"

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

	.no_dead_strip	_acpi_bind_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_bind_one
_acpi_bind_one:                         ; @acpi_bind_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	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x0, x19
	bl	_get_device
Lloh2:
	adrp	x8, _acpi_glue_data_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _acpi_glue_data_handler@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_acpi_attach_data
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_put_device
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	str	x20, [x19, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_acpi_bus_get_device
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	x8, [sp, #8]
	add	x1, x8, #16
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sysfs_create_link
	ldr	x8, [sp, #8]
	add	x0, x8, #16
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_sysfs_create_link
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	bl	_device_set_wakeup_capable
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_device_set_wakeup_enable
LBB0_9:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Drivers changed 'acpi_handle'\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_acpi_glue_data_handler,4,2     ; @acpi_glue_data_handler
l_.str.1:                               ; @.str.1
	.asciz	"firmware_node"

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

	.no_dead_strip	_acpi_bind_one
.subsections_via_symbols
