	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ev_save_method_info
_acpi_ev_save_method_info:              ## @acpi_ev_save_method_info
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ACPI_NAME_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_ev_save_method_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ACPI_MOVE_32_TO_32
	movslq	(%r12), %rax
	movb	$0, (%rbx,%rax)
	movsbl	1(%rbx), %eax
	cmpl	$69, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$76, %eax
	jne	LBB0_4
## %bb.2:
	movq	_ACPI_GPE_LEVEL_TRIGGERED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_5
LBB0_3:
	movq	_ACPI_GPE_EDGE_TRIGGERED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
                                        ## implicit-def: $r13d
LBB0_5:
	movq	%rbx, %rdi
	addq	$2, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_ACPI_STRTOUL
	movq	%rax, %r12
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_7:
	movq	(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_9
## %bb.8:
	movslq	8(%r15), %rcx
	leaq	(%rax,%rcx,8), %rcx
	cmpq	%rcx, %r12
	jl	LBB0_10
LBB0_9:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movq	(%r15), %rax
LBB0_10:
	movq	16(%r15), %rcx
	movq	%r12, %rdx
	subq	%rax, %rdx
	shlq	$4, %rdx
	movq	_ACPI_GPE_DISPATCH_METHOD@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	leaq	(%rcx,%rdx), %rdi
	movq	_ACPI_GPE_TYPE_RUNTIME@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	%r13d, (%rcx,%rdx)
	movq	%r14, 8(%rcx,%rdx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_acpi_ev_enable_gpe
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_ACPI_DEBUG_PRINT
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_NAME_SIZE,4,2             ## @ACPI_NAME_SIZE
	.comm	_ev_save_method_info,4,2        ## @ev_save_method_info
	.comm	_ACPI_GPE_LEVEL_TRIGGERED,4,2   ## @ACPI_GPE_LEVEL_TRIGGERED
	.comm	_ACPI_GPE_EDGE_TRIGGERED,4,2    ## @ACPI_GPE_EDGE_TRIGGERED
	.comm	_ACPI_DB_LOAD,4,2               ## @ACPI_DB_LOAD
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ACPI_UINT32_MAX,8,3            ## @ACPI_UINT32_MAX
	.comm	_ACPI_GPE_DISPATCH_METHOD,4,2   ## @ACPI_GPE_DISPATCH_METHOD
	.comm	_ACPI_GPE_TYPE_RUNTIME,4,2      ## @ACPI_GPE_TYPE_RUNTIME
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_acpi_ev_save_method_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ev_save_method_info
_acpi_ev_save_method_info:              ; @acpi_ev_save_method_info
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _ACPI_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ACPI_NAME_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _ev_save_method_info@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ev_save_method_info@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	mov	x0, x21
	mov	x1, x19
	bl	_ACPI_MOVE_32_TO_32
	ldrsw	x8, [x22]
	strb	wzr, [x21, x8]
	ldrsb	w8, [x21, #1]
Lloh10:
	adrp	x23, _AE_OK@GOTPAGE
Lloh11:
	ldr	x23, [x23, _AE_OK@GOTPAGEOFF]
	cmp	w8, #69
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #76
	b.ne	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _ACPI_GPE_LEVEL_TRIGGERED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_GPE_LEVEL_TRIGGERED@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _ACPI_GPE_EDGE_TRIGGERED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACPI_GPE_EDGE_TRIGGERED@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_ACPI_DEBUG_PRINT
	ldr	w0, [x23]
	bl	_return_ACPI_STATUS
                                        ; implicit-def: $w24
LBB0_5:
	add	x0, x21, #2
	mov	x1, #0
	mov	w2, #16
	bl	_ACPI_STRTOUL
	mov	x22, x0
Lloh18:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_ACPI_DEBUG_PRINT
	ldr	w0, [x23]
	bl	_return_ACPI_STATUS
LBB0_7:
	ldr	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_9
; %bb.8:
	ldrsw	x9, [x20, #8]
	add	x9, x8, x9, lsl #3
	cmp	x22, x9
	b.lt	LBB0_10
LBB0_9:
	ldr	w0, [x23]
	bl	_return_ACPI_STATUS
	ldr	x8, [x20]
LBB0_10:
	ldr	x9, [x20, #16]
	sub	x8, x22, x8
Lloh21:
	adrp	x10, _ACPI_GPE_DISPATCH_METHOD@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ACPI_GPE_DISPATCH_METHOD@GOTPAGEOFF]
	add	x0, x9, x8, lsl #4
Lloh23:
	ldr	w8, [x10]
	orr	w8, w8, w24
Lloh24:
	adrp	x9, _ACPI_GPE_TYPE_RUNTIME@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ACPI_GPE_TYPE_RUNTIME@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0]
	str	x19, [x0, #8]
Lloh27:
	adrp	x8, _FALSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_acpi_ev_enable_gpe
	mov	x19, x0
	mov	x0, x22
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x19
	bl	_return_ACPI_STATUS
	ldur	x8, [x29, #-56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_NAME_SIZE,4,2             ; @ACPI_NAME_SIZE
	.comm	_ev_save_method_info,4,2        ; @ev_save_method_info
	.comm	_ACPI_GPE_LEVEL_TRIGGERED,4,2   ; @ACPI_GPE_LEVEL_TRIGGERED
	.comm	_ACPI_GPE_EDGE_TRIGGERED,4,2    ; @ACPI_GPE_EDGE_TRIGGERED
	.comm	_ACPI_DB_LOAD,4,2               ; @ACPI_DB_LOAD
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ACPI_UINT32_MAX,8,3            ; @ACPI_UINT32_MAX
	.comm	_ACPI_GPE_DISPATCH_METHOD,4,2   ; @ACPI_GPE_DISPATCH_METHOD
	.comm	_ACPI_GPE_TYPE_RUNTIME,4,2      ; @ACPI_GPE_TYPE_RUNTIME
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_acpi_ev_save_method_info
.subsections_via_symbols
