	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_dlstart
_brcmf_usb_dlstart:                     ## @brcmf_usb_dlstart
	.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	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_USB@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	cmpl	$57005, (%r14)                  ## imm = 0xDEAD
	jne	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_brcmf_usb_dl_writeimage
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	_BRCMFMAC_USB_STATE_DL_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_BRCMFMAC_USB_STATE_DL_FAIL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_EINVAL,4,2                     ## @EINVAL
	.comm	_BRCMFMAC_USB_STATE_DL_DONE,4,2 ## @BRCMFMAC_USB_STATE_DL_DONE
	.comm	_BRCMFMAC_USB_STATE_DL_FAIL,4,2 ## @BRCMFMAC_USB_STATE_DL_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"Exit, err=%d\n"

	.no_dead_strip	_brcmf_usb_dlstart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_usb_dlstart
_brcmf_usb_dlstart:                     ; @brcmf_usb_dlstart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _USB@GOTPAGE
Lloh1:
	ldr	x22, [x22, _USB@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	cbz	x19, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	mov	w9, #57005
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_brcmf_usb_dl_writeimage
	mov	x20, x0
Lloh7:
	adrp	x8, _BRCMFMAC_USB_STATE_DL_DONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BRCMFMAC_USB_STATE_DL_DONE@GOTPAGEOFF]
Lloh9:
	adrp	x9, _BRCMFMAC_USB_STATE_DL_FAIL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BRCMFMAC_USB_STATE_DL_FAIL@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w0, [x22]
	str	x20, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_USB,4,2                        ; @USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BRCMFMAC_USB_STATE_DL_DONE,4,2 ; @BRCMFMAC_USB_STATE_DL_DONE
	.comm	_BRCMFMAC_USB_STATE_DL_FAIL,4,2 ; @BRCMFMAC_USB_STATE_DL_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"Exit, err=%d\n"

	.no_dead_strip	_brcmf_usb_dlstart
.subsections_via_symbols
