	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_secure_boot_enabled        ## -- Begin function efi_secure_boot_enabled
	.p2align	4, 0x90
_efi_secure_boot_enabled:               ## @efi_secure_boot_enabled
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$4, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-24(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_efi_global_getenv
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_1
## %bb.3:
	movq	$4, -32(%rbp)
	leaq	L_.str.2(%rip), %rdi
	leaq	-20(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_efi_global_getenv
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.4:
	movl	-20(%rbp), %edx
	jmp	LBB0_6
LBB0_1:
	movq	%rax, %rbx
	movq	_EFI_NOT_FOUND@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rbx
	je	LBB0_7
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_efi_status_to_errno
	negl	%eax
	jmp	LBB0_7
LBB0_5:
	movl	$0, -20(%rbp)
	xorl	%edx, %edx
LBB0_6:
	movl	-24(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-24(%rbp), %ecx
	xorl	$1, %ecx
	xorl	%eax, %eax
	orl	-20(%rbp), %ecx
	sete	%al
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SecureBoot"

	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_EFI_NOT_FOUND,8,3              ## @EFI_NOT_FOUND
L_.str.2:                               ## @.str.2
	.asciz	"SetupMode"

L_.str.3:                               ## @.str.3
	.asciz	"   SecureBoot: %d, SetupMode: %d\n"

L_str:                                  ## @str
	.asciz	"Failed to read \"SecureBoot\" variable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_secure_boot_enabled        ; -- Begin function efi_secure_boot_enabled
	.p2align	2
_efi_secure_boot_enabled:               ; @efi_secure_boot_enabled
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	w8, #4
	str	x8, [sp, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	sub	x1, x29, #20
	add	x2, sp, #16
	bl	_efi_global_getenv
Lloh2:
	adrp	x20, _EFI_SUCCESS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	w8, #4
	str	x8, [sp, #16]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_efi_global_getenv
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [sp, #24]
	b	LBB0_6
LBB0_3:
	mov	x19, x0
Lloh6:
	adrp	x8, _EFI_NOT_FOUND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFI_NOT_FOUND@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	mov	w8, #0
	str	wzr, [sp, #24]
LBB0_6:
	ldur	w9, [x29, #-20]
	stp	x9, x8, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldur	w8, [x29, #-20]
	cmp	w8, #1
	ldr	w8, [sp, #24]
	ccmp	w8, #0, #0, eq
	cset	w0, eq
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x19
	bl	_efi_status_to_errno
	neg	w0, w0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SecureBoot"

	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_EFI_NOT_FOUND,8,3              ; @EFI_NOT_FOUND
l_.str.2:                               ; @.str.2
	.asciz	"SetupMode"

l_.str.3:                               ; @.str.3
	.asciz	"   SecureBoot: %d, SetupMode: %d\n"

l_str:                                  ; @str
	.asciz	"Failed to read \"SecureBoot\" variable"

.subsections_via_symbols
