	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_fw_section
_check_fw_section:                      ## @check_fw_section
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	4(%rsi), %edi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	testl	%eax, %eax
	je	LBB0_2
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testb	$3, %r13b
	jne	LBB0_8
## %bb.3:
	movl	(%r12), %ecx
	subl	%r13d, %ecx
	jle	LBB0_8
## %bb.4:
	testl	%r15d, %r15d
	setne	%dl
	testl	%eax, %eax
	sete	%bl
	testb	%bl, %dl
	jne	LBB0_8
## %bb.5:
	cmpl	%ecx, %eax
	jg	LBB0_8
## %bb.6:
	decl	%r14d
	testl	%r14d, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_check_fw_section
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_fw_section
_check_fw_section:                      ; @check_fw_section
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	ldr	w0, [x1, #4]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x23]
	bl	_be32_to_cpu
	cmp	w21, #0
	ccmp	w0, #0, #4, eq
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x22]
	and	w9, w21, #0x3
	cmp	w9, #0
	ccmp	w8, w21, #4, eq
	b.le	LBB0_4
; %bb.2:
	sub	w8, w8, w21
	cmp	w0, #0
	ccmp	w20, #0, #4, eq
	ccmp	w0, w8, #0, eq
	b.gt	LBB0_4
; %bb.3:
	sub	w8, w19, #1
	tst	w0, w8
	b.eq	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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_6:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_check_fw_section
.subsections_via_symbols
