	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gic_enable_nmi_support
_gic_enable_nmi_support:                ## @gic_enable_nmi_support
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_gic_prio_masking_enabled
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	xorl	%eax, %eax
	callq	_gic_has_group0
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_gic_dist_security_disabled
	testl	%eax, %eax
	je	LBB0_13
LBB0_3:
	movq	_gic_data@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	_ppi_nmi_refs@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.5:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_refcount_set
	cmpl	$2, (%r14)
	jl	LBB0_8
## %bb.6:
	movl	$1, %r12d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_refcount_set
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_7
LBB0_8:
	movq	_supports_pseudo_nmis@GOTPCREL(%rip), %rdi
	callq	_static_branch_enable
	movq	_supports_deactivate_key@GOTPCREL(%rip), %rdi
	callq	_static_branch_likely
	movq	_IRQCHIP_SUPPORTS_NMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_gic_eoimode1_chip@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
LBB0_10:
	movq	_gic_chip@GOTPCREL(%rip), %rax
LBB0_11:
	orl	%ecx, (%rax)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCR_EL3.FIQ is cleared, cannot enable use of pseudo-NMIs\n"

	.comm	_gic_data,4,2                   ## @gic_data
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ppi_nmi_refs,8,3               ## @ppi_nmi_refs
	.comm	_supports_pseudo_nmis,4,2       ## @supports_pseudo_nmis
	.comm	_supports_deactivate_key,4,2    ## @supports_deactivate_key
	.comm	_IRQCHIP_SUPPORTS_NMI,4,2       ## @IRQCHIP_SUPPORTS_NMI
	.comm	_gic_eoimode1_chip,4,2          ## @gic_eoimode1_chip
	.comm	_gic_chip,4,2                   ## @gic_chip
	.no_dead_strip	_gic_enable_nmi_support
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gic_enable_nmi_support
_gic_enable_nmi_support:                ; @gic_enable_nmi_support
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_gic_prio_masking_enabled
	cbz	w0, LBB0_13
; %bb.1:
	bl	_gic_has_group0
	cbz	x0, LBB0_3
; %bb.2:
	bl	_gic_dist_security_disabled
	cbz	w0, LBB0_10
LBB0_3:
Lloh0:
	adrp	x19, _gic_data@GOTPAGE
Lloh1:
	ldr	x19, [x19, _gic_data@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
Lloh5:
	adrp	x20, _ppi_nmi_refs@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ppi_nmi_refs@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_13
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w1, #0
	bl	_refcount_set
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.6:
	mov	w21, #1
	mov	w22, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x22
	mov	w1, #0
	bl	_refcount_set
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x22, x22, #4
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_8:
Lloh7:
	adrp	x0, _supports_pseudo_nmis@GOTPAGE
Lloh8:
	ldr	x0, [x0, _supports_pseudo_nmis@GOTPAGEOFF]
	bl	_static_branch_enable
Lloh9:
	adrp	x0, _supports_deactivate_key@GOTPAGE
Lloh10:
	ldr	x0, [x0, _supports_deactivate_key@GOTPAGEOFF]
	bl	_static_branch_likely
Lloh11:
	adrp	x8, _IRQCHIP_SUPPORTS_NMI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQCHIP_SUPPORTS_NMI@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	x0, LBB0_11
; %bb.9:
Lloh14:
	adrp	x9, _gic_eoimode1_chip@GOTPAGE
Lloh15:
	ldr	x9, [x9, _gic_eoimode1_chip@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pr_warn
LBB0_11:
Lloh18:
	adrp	x9, _gic_chip@GOTPAGE
Lloh19:
	ldr	x9, [x9, _gic_chip@GOTPAGEOFF]
LBB0_12:
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCR_EL3.FIQ is cleared, cannot enable use of pseudo-NMIs\n"

	.comm	_gic_data,4,2                   ; @gic_data
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ppi_nmi_refs,8,3               ; @ppi_nmi_refs
	.comm	_supports_pseudo_nmis,4,2       ; @supports_pseudo_nmis
	.comm	_supports_deactivate_key,4,2    ; @supports_deactivate_key
	.comm	_IRQCHIP_SUPPORTS_NMI,4,2       ; @IRQCHIP_SUPPORTS_NMI
	.comm	_gic_eoimode1_chip,4,2          ; @gic_eoimode1_chip
	.comm	_gic_chip,4,2                   ; @gic_chip
	.no_dead_strip	_gic_enable_nmi_support
.subsections_via_symbols
