	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uimage_find_edimax
_uimage_find_edimax:                    ## @uimage_find_edimax
	.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
	movq	_FW_EDIMAX_OFFSET@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	addq	$4, %rax
	cmpq	%rsi, %rax
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_be32_to_cpu
	movq	_FW_MAGIC_EDIMAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movslq	(%r12), %rax
	leaq	(%r15,%rax,4), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_uimage_verify_default
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r12), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_EDIMAX_OFFSET,4,2           ## @FW_EDIMAX_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Buffer too small for checking Edimax header\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_FW_MAGIC_EDIMAX,8,3            ## @FW_MAGIC_EDIMAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_uimage_find_edimax
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uimage_find_edimax
_uimage_find_edimax:                    ; @uimage_find_edimax
	.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
Lloh0:
	adrp	x22, _FW_EDIMAX_OFFSET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FW_EDIMAX_OFFSET@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x8, x8, #4
	cmp	x8, x1
	b.ls	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_be32_to_cpu
Lloh6:
	adrp	x8, _FW_MAGIC_EDIMAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_MAGIC_EDIMAX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldrsw	x8, [x22]
	add	x0, x21, x8, lsl #2
	mov	x1, x20
	mov	x2, x19
	bl	_uimage_verify_default
	cbz	w0, LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
	ldr	w0, [x22]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_EDIMAX_OFFSET,4,2           ; @FW_EDIMAX_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Buffer too small for checking Edimax header\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_FW_MAGIC_EDIMAX,8,3            ; @FW_MAGIC_EDIMAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_uimage_find_edimax
.subsections_via_symbols
