	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_init_global_lock_handler ## -- Begin function acpi_ev_init_global_lock_handler
	.p2align	4, 0x90
_acpi_ev_init_global_lock_handler:      ## @acpi_ev_init_global_lock_handler
	.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	_ev_init_global_lock_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_EVENT_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_acpi_ev_global_lock_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_acpi_install_fixed_event_handler
	movq	%rax, %rbx
	movq	_AE_NO_HARDWARE_RESPONSE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_acpi_gbl_global_lock_present@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_acpi_gbl_global_lock_present@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_init_global_lock_handler,4,2 ## @ev_init_global_lock_handler
	.comm	_ACPI_EVENT_GLOBAL,4,2          ## @ACPI_EVENT_GLOBAL
	.comm	_acpi_ev_global_lock_handler,4,2 ## @acpi_ev_global_lock_handler
	.comm	_AE_NO_HARDWARE_RESPONSE,8,3    ## @AE_NO_HARDWARE_RESPONSE
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No response from Global Lock hardware, disabling lock"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_acpi_gbl_global_lock_present,4,2 ## @acpi_gbl_global_lock_present
	.comm	_AE_OK,8,3                      ## @AE_OK
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_init_global_lock_handler ; -- Begin function acpi_ev_init_global_lock_handler
	.p2align	2
_acpi_ev_init_global_lock_handler:      ; @acpi_ev_init_global_lock_handler
	.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
Lloh0:
	adrp	x8, _ev_init_global_lock_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_init_global_lock_handler@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x8, _ACPI_EVENT_GLOBAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_EVENT_GLOBAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _acpi_ev_global_lock_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _acpi_ev_global_lock_handler@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_acpi_install_fixed_event_handler
	mov	x19, x0
Lloh9:
	adrp	x8, _AE_NO_HARDWARE_RESPONSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_NO_HARDWARE_RESPONSE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x20, _acpi_gbl_global_lock_present@GOTPAGE
Lloh13:
	ldr	x20, [x20, _acpi_gbl_global_lock_present@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh19:
	adrp	x8, _AE_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_init_global_lock_handler,4,2 ; @ev_init_global_lock_handler
	.comm	_ACPI_EVENT_GLOBAL,4,2          ; @ACPI_EVENT_GLOBAL
	.comm	_acpi_ev_global_lock_handler,4,2 ; @acpi_ev_global_lock_handler
	.comm	_AE_NO_HARDWARE_RESPONSE,8,3    ; @AE_NO_HARDWARE_RESPONSE
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No response from Global Lock hardware, disabling lock"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_acpi_gbl_global_lock_present,4,2 ; @acpi_gbl_global_lock_present
	.comm	_AE_OK,8,3                      ; @AE_OK
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
