	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_machdep_init              ## -- Begin function acpi_machdep_init
	.p2align	4, 0x90
_acpi_machdep_init:                     ## @acpi_machdep_init
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_acpi_apm_init
	movq	%rbx, %rdi
	callq	_acpi_install_wakeup_handler
	movq	_intr_model@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ACPI_INTR_PIC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_2
## %bb.1:
	callq	_acpi_SetIntrModel
LBB0_2:
	movq	%rbx, %r14
	addq	$4, %r14
	movl	(%rbx), %edi
	callq	_SYSCTL_CHILDREN
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CTLFLAG_RW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str(%rip), %rcx
	movq	_acpi_reset_video@GOTPCREL(%rip), %r9
	movq	%r14, %rdi
	movl	%eax, %esi
	pushq	%rbx
	pushq	$0
	callq	_SYSCTL_ADD_INT
	addq	$16, %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intr_model,8,3                 ## @intr_model
	.comm	_ACPI_INTR_PIC,8,3              ## @ACPI_INTR_PIC
	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset_video"

	.comm	_CTLFLAG_RW,4,2                 ## @CTLFLAG_RW
	.comm	_acpi_reset_video,4,2           ## @acpi_reset_video
L_.str.1:                               ## @.str.1
	.asciz	"Call the VESA reset BIOS vector on the resume path"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_machdep_init              ; -- Begin function acpi_machdep_init
	.p2align	2
_acpi_machdep_init:                     ; @acpi_machdep_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_device_get_softc
	mov	x19, x0
	bl	_acpi_apm_init
	mov	x0, x19
	bl	_acpi_install_wakeup_handler
Lloh0:
	adrp	x8, _intr_model@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intr_model@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _ACPI_INTR_PIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_INTR_PIC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	bl	_acpi_SetIntrModel
LBB0_2:
	ldr	w0, [x19], #4
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
Lloh6:
	adrp	x8, _OID_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OID_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _CTLFLAG_RW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTLFLAG_RW@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
Lloh14:
	adrp	x5, _acpi_reset_video@GOTPAGE
Lloh15:
	ldr	x5, [x5, _acpi_reset_video@GOTPAGEOFF]
Lloh16:
	adrp	x7, l_.str.1@PAGE
Lloh17:
	add	x7, x7, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w6, #0
	bl	_SYSCTL_ADD_INT
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_intr_model,8,3                 ; @intr_model
	.comm	_ACPI_INTR_PIC,8,3              ; @ACPI_INTR_PIC
	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset_video"

	.comm	_CTLFLAG_RW,4,2                 ; @CTLFLAG_RW
	.comm	_acpi_reset_video,4,2           ; @acpi_reset_video
l_.str.1:                               ; @.str.1
	.asciz	"Call the VESA reset BIOS vector on the resume path"

.subsections_via_symbols
