	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_create_gpe_block       ## -- Begin function acpi_ev_create_gpe_block
	.p2align	4, 0x90
_acpi_ev_create_gpe_block:              ## @acpi_ev_create_gpe_block
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_ev_create_gpe_block@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movl	$24, %edi
	callq	_ACPI_ALLOCATE_ZEROED
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	%r12, 16(%rbx)
	movl	%r13d, (%rbx)
	movl	%r14d, 4(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_ACPI_MEMCPY
	movq	%rbx, %rdi
	callq	_acpi_ev_create_gpe_info_blocks
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_ACPI_FREE
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
LBB0_6:
	movq	%rbx, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_acpi_ev_install_gpe_block
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_ACPI_FREE
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
LBB0_8:
	movq	_ACPI_TYPE_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ACPI_NS_WALK_NO_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_acpi_ev_save_method_info@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	$0, (%rsp)
	movq	%r12, %rsi
	movq	%rbx, %r9
	callq	_acpi_ns_walk_namespace
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, (%rax)
LBB0_10:
	movl	%r15d, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_ACPI_GPE_REGISTER_WIDTH@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	movq	_acpi_current_gpe_count@GOTPCREL(%rip), %rax
	addl	%r13d, (%rax)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_create_gpe_block,4,2        ## @ev_create_gpe_block
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_ACPI_TYPE_METHOD,4,2           ## @ACPI_TYPE_METHOD
	.comm	_ACPI_UINT32_MAX,4,2            ## @ACPI_UINT32_MAX
	.comm	_ACPI_NS_WALK_NO_UNLOCK,4,2     ## @ACPI_NS_WALK_NO_UNLOCK
	.comm	_acpi_ev_save_method_info,4,2   ## @acpi_ev_save_method_info
	.comm	_ACPI_DB_INIT,4,2               ## @ACPI_DB_INIT
	.comm	_ACPI_GPE_REGISTER_WIDTH,4,2    ## @ACPI_GPE_REGISTER_WIDTH
	.comm	_acpi_current_gpe_count,4,2     ## @acpi_current_gpe_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_create_gpe_block       ; -- Begin function acpi_ev_create_gpe_block
	.p2align	2
_acpi_ev_create_gpe_block:              ; @acpi_ev_create_gpe_block
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x5
	mov	x20, x4
	mov	x25, x3
	mov	x19, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ev_create_gpe_block@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_create_gpe_block@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x26, _AE_OK@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AE_OK@GOTPAGEOFF]
	cbnz	w19, LBB0_2
; %bb.1:
	ldr	w0, [x26]
	bl	_return_ACPI_STATUS
LBB0_2:
	mov	w0, #24
	bl	_ACPI_ALLOCATE_ZEROED
	mov	x23, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_4:
	str	x22, [x23, #16]
	add	x0, x23, #8
	stp	w19, w25, [x23]
	mov	x1, x24
	mov	w2, #4
	bl	_ACPI_MEMCPY
	mov	x0, x23
	bl	_acpi_ev_create_gpe_info_blocks
	mov	x24, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x23
	bl	_ACPI_FREE
	mov	x0, x24
	bl	_return_ACPI_STATUS
LBB0_6:
	mov	x0, x23
	mov	x1, x20
	bl	_acpi_ev_install_gpe_block
	mov	x24, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x23
	bl	_ACPI_FREE
	mov	x0, x24
	bl	_return_ACPI_STATUS
LBB0_8:
Lloh8:
	adrp	x8, _ACPI_TYPE_METHOD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACPI_TYPE_METHOD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _ACPI_NS_WALK_NO_UNLOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACPI_NS_WALK_NO_UNLOCK@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x8, _acpi_ev_save_method_info@GOTPAGE
Lloh18:
	ldr	x8, [x8, _acpi_ev_save_method_info@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x1, x22
	mov	x5, x23
	mov	x6, #0
	bl	_acpi_ns_walk_namespace
	cbz	x21, LBB0_10
; %bb.9:
	str	x23, [x21]
LBB0_10:
	mov	x0, x20
	bl	_ACPI_DEBUG_PRINT
Lloh20:
	adrp	x8, _ACPI_GPE_REGISTER_WIDTH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ACPI_GPE_REGISTER_WIDTH@GOTPAGEOFF]
Lloh22:
	adrp	x9, _acpi_current_gpe_count@GOTPAGE
Lloh23:
	ldr	x9, [x9, _acpi_current_gpe_count@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w10, [x9]
	madd	w8, w8, w19, w10
	str	w8, [x9]
	ldr	w0, [x26]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_create_gpe_block,4,2        ; @ev_create_gpe_block
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_ACPI_TYPE_METHOD,4,2           ; @ACPI_TYPE_METHOD
	.comm	_ACPI_UINT32_MAX,4,2            ; @ACPI_UINT32_MAX
	.comm	_ACPI_NS_WALK_NO_UNLOCK,4,2     ; @ACPI_NS_WALK_NO_UNLOCK
	.comm	_acpi_ev_save_method_info,4,2   ; @acpi_ev_save_method_info
	.comm	_ACPI_DB_INIT,4,2               ; @ACPI_DB_INIT
	.comm	_ACPI_GPE_REGISTER_WIDTH,4,2    ; @ACPI_GPE_REGISTER_WIDTH
	.comm	_acpi_current_gpe_count,4,2     ; @acpi_current_gpe_count
.subsections_via_symbols
