	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_file
_check_file:                            ## @check_file
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movq	(%r14), %r15
	movq	_TRX_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	$-1, %ebx
	cmpq	%rax, %r15
	jne	LBB0_3
## %bb.1:
	movl	16(%r14), %edi
	callq	_le32_to_cpu
	movq	_TRX_UNCOMP_IMAGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rax
	movq	_TRX_OFFSETS_DLFWLEN_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	addl	$24, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB,4,2                        ## @USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_TRX_MAGIC,4,2                  ## @TRX_MAGIC
	.comm	_TRX_UNCOMP_IMAGE,4,2           ## @TRX_UNCOMP_IMAGE
	.comm	_TRX_OFFSETS_DLFWLEN_IDX,8,3    ## @TRX_OFFSETS_DLFWLEN_IDX
	.no_dead_strip	_check_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_file
_check_file:                            ; @check_file
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _USB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	x20, [x19]
Lloh5:
	adrp	x8, _TRX_MAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRX_MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	cmp	x20, x0
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_le32_to_cpu
Lloh8:
	adrp	x8, _TRX_UNCOMP_IMAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRX_UNCOMP_IMAGE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _TRX_OFFSETS_DLFWLEN_IDX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TRX_OFFSETS_DLFWLEN_IDX@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	add	w0, w0, #24
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_USB,4,2                        ; @USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_TRX_MAGIC,4,2                  ; @TRX_MAGIC
	.comm	_TRX_UNCOMP_IMAGE,4,2           ; @TRX_UNCOMP_IMAGE
	.comm	_TRX_OFFSETS_DLFWLEN_IDX,8,3    ; @TRX_OFFSETS_DLFWLEN_IDX
	.no_dead_strip	_check_file
.subsections_via_symbols
