	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_dlrun
_brcmf_usb_dlrun:                       ## @brcmf_usb_dlrun
	.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, %rbx
	movq	_USB@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	cmpl	$57005, (%rbx)                  ## imm = 0xDEAD
	je	LBB0_1
## %bb.4:
	movq	$0, -32(%rbp)
	movq	_DL_GETSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_brcmf_usb_dl_cmd
	movq	-32(%rbp), %r15
	movq	_DL_RUNNABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	cmpq	%rax, %r15
	jne	LBB0_10
## %bb.5:
	movq	_DL_GO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_brcmf_usb_dl_cmd
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_brcmf_usb_resetcfg
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_brcmf_err
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_brcmf_dbg
	xorl	%eax, %eax
	jmp	LBB0_9
	.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	_DL_GETSTATE,4,2                ## @DL_GETSTATE
	.comm	_DL_RUNNABLE,4,2                ## @DL_RUNNABLE
	.comm	_DL_GO,4,2                      ## @DL_GO
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Dongle not runnable\n"

L_.str.2:                               ## @.str.2
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_usb_dlrun
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_usb_dlrun
_brcmf_usb_dlrun:                       ; @brcmf_usb_dlrun
	.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	x19, x0
Lloh0:
	adrp	x20, _USB@GOTPAGE
Lloh1:
	ldr	x20, [x20, _USB@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	cbz	x19, LBB0_7
; %bb.1:
	ldr	w8, [x19]
	mov	w9, #57005
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.2:
	str	xzr, [sp, #8]
Lloh4:
	adrp	x8, _DL_GETSTATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DL_GETSTATE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	bl	_brcmf_usb_dl_cmd
	ldr	x21, [sp, #8]
Lloh7:
	adrp	x8, _DL_RUNNABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DL_RUNNABLE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	cmp	x21, x0
	b.ne	LBB0_6
; %bb.3:
Lloh10:
	adrp	x8, _DL_GO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DL_GO@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	bl	_brcmf_usb_dl_cmd
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_brcmf_usb_resetcfg
	cbz	x0, LBB0_10
LBB0_5:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_brcmf_err
LBB0_7:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	mov	w0, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.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	_DL_GETSTATE,4,2                ; @DL_GETSTATE
	.comm	_DL_RUNNABLE,4,2                ; @DL_RUNNABLE
	.comm	_DL_GO,4,2                      ; @DL_GO
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Dongle not runnable\n"

l_.str.2:                               ; @.str.2
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_usb_dlrun
.subsections_via_symbols
