	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_capsule_supported          ## -- Begin function efi_capsule_supported
	.p2align	4, 0x90
_efi_capsule_supported:                 ## @efi_capsule_supported
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	%edi, -44(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	_EFI_CAPSULE_SUPPORTED_FLAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%esi, %eax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %ebx
	movabsq	$68719476752, %rax              ## imm = 0x1000000010
	movq	%rax, -72(%rbp)
	leaq	-60(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	%ebx, -64(%rbp)
	movq	_efi@GOTPCREL(%rip), %rax
	leaq	-40(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movl	$1, %esi
	movq	%r15, %rcx
	callq	*(%rax)
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	cmpq	%r14, -56(%rbp)
	jae	LBB0_7
## %bb.5:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	%rax, %rdi
	callq	_efi_status_to_err
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_CAPSULE_SUPPORTED_FLAG_MASK,4,2 ## @EFI_CAPSULE_SUPPORTED_FLAG_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_efi,8,3                        ## @efi
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_capsule_supported          ; -- Begin function efi_capsule_supported
	.p2align	2
_efi_capsule_supported:                 ; @efi_capsule_supported
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	w0, [sp, #28]
	add	x8, sp, #8
	str	x8, [sp, #32]
Lloh3:
	adrp	x9, _EFI_CAPSULE_SUPPORTED_FLAG_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EFI_CAPSULE_SUPPORTED_FLAG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bics	wzr, w1, w9
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	movi.2s	v0, #16
	str	d0, [sp, #8]
	add	x0, x8, #12
	add	x1, sp, #28
	mov	w2, #4
	bl	_memcpy
	str	w21, [sp, #16]
Lloh8:
	adrp	x8, _efi@GOTPAGE
Lloh9:
	ldr	x8, [x8, _efi@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x0, sp, #32
	mov	x2, sp
	mov	w1, #1
	mov	x3, x20
	blr	x8
Lloh11:
	adrp	x8, _EFI_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFI_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [sp]
	cmp	x8, x19
	b.hs	LBB0_7
; %bb.5:
Lloh14:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_2
LBB0_6:
	bl	_efi_status_to_err
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_CAPSULE_SUPPORTED_FLAG_MASK,4,2 ; @EFI_CAPSULE_SUPPORTED_FLAG_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_efi,8,3                        ; @efi
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
.subsections_via_symbols
