	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt73usb_check_firmware
_rt73usb_check_firmware:                ## @rt73usb_check_firmware
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$2048, %rdx                     ## imm = 0x800
	jne	LBB0_1
## %bb.2:
	movl	8184(%rsi), %ebx
	shll	$8, %ebx
	orl	8188(%rsi), %ebx
	movl	$2046, %edx                     ## imm = 0x7FE
	xorl	%edi, %edi
	callq	_crc_itu_t
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_crc_itu_t_byte
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_crc_itu_t_byte
	cmpl	%eax, %ebx
	jne	LBB0_3
## %bb.4:
	movq	_FW_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_FW_BAD_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_FW_BAD_CRC@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_BAD_LENGTH,4,2              ## @FW_BAD_LENGTH
	.comm	_FW_OK,4,2                      ## @FW_OK
	.comm	_FW_BAD_CRC,4,2                 ## @FW_BAD_CRC
	.no_dead_strip	_rt73usb_check_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt73usb_check_firmware
_rt73usb_check_firmware:                ; @rt73usb_check_firmware
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	x2, #2048
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x1, #8184]
	ldr	w9, [x1, #8188]
	orr	w19, w9, w8, lsl #8
	mov	w0, #0
	mov	w2, #2046
	bl	_crc_itu_t
	mov	w1, #0
	bl	_crc_itu_t_byte
	mov	w1, #0
	bl	_crc_itu_t_byte
Lloh0:
	adrp	x8, _FW_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_OK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FW_BAD_CRC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FW_BAD_CRC@GOTPAGEOFF]
	cmp	w19, w0
	csel	x8, x8, x9, eq
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _FW_BAD_LENGTH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FW_BAD_LENGTH@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_BAD_LENGTH,4,2              ; @FW_BAD_LENGTH
	.comm	_FW_OK,4,2                      ; @FW_OK
	.comm	_FW_BAD_CRC,4,2                 ; @FW_BAD_CRC
	.no_dead_strip	_rt73usb_check_firmware
.subsections_via_symbols
