	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_fil_cmd_data
_brcmf_fil_cmd_data:                    ## @brcmf_fil_cmd_data
	.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	%r8d, %r13d
	movl	%ecx, %r8d
	movq	16(%rdi), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_BRCMF_BUS_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	_uint@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BRCMF_DCMD_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r8d, %esi
	callq	_min_t
	movl	%eax, %r8d
LBB0_4:
	movl	8(%r14), %esi
	leaq	-44(%rbp), %r9
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movq	%r12, %rcx
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	callq	_brcmf_proto_set_dcmd
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_bphy_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_6:
	callq	_brcmf_proto_query_dcmd
LBB0_7:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_FIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	jmp	LBB0_11
LBB0_9:
	movl	-44(%rbp), %edi
	xorl	%ebx, %ebx
	testl	%edi, %edi
	jns	LBB0_11
## %bb.10:
	movq	_FIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	negl	%edi
	callq	_brcmf_fil_get_errstr
	movl	-44(%rbp), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_EBADE@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_11:
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.12:
	movl	-44(%rbp), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_BUS_UP,8,3               ## @BRCMF_BUS_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bus is down. we have nothing to do.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_uint,4,2                       ## @uint
	.comm	_BRCMF_DCMD_MAXLEN,4,2          ## @BRCMF_DCMD_MAXLEN
	.comm	_FIL,4,2                        ## @FIL
L_.str.1:                               ## @.str.1
	.asciz	"Failed: error=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Firmware error: %s (%d)\n"

	.comm	_EBADE,4,2                      ## @EBADE
	.no_dead_strip	_brcmf_fil_cmd_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_fil_cmd_data
_brcmf_fil_cmd_data:                    ; @brcmf_fil_cmd_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x22, [x0, #16]
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _BRCMF_BUS_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMF_BUS_UP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x23, x4
	mov	x4, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbz	x2, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _uint@GOTPAGE
Lloh4:
	ldr	x8, [x8, _uint@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _BRCMF_DCMD_MAXLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRCMF_DCMD_MAXLEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x4
	bl	_min_t
	mov	x4, x0
LBB0_3:
	ldr	w1, [x19, #8]
	add	x5, sp, #12
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	cbz	w23, LBB0_7
; %bb.4:
	bl	_brcmf_proto_set_dcmd
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _FIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FIL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_brcmf_dbg
	b	LBB0_11
LBB0_6:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_bphy_err
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_7:
	bl	_brcmf_proto_query_dcmd
	mov	x20, x0
	cbnz	w0, LBB0_5
LBB0_8:
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_10
; %bb.9:
	mov	w20, #0
	b	LBB0_11
LBB0_10:
Lloh19:
	adrp	x9, _FIL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FIL@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x9]
	neg	w0, w8
	bl	_brcmf_fil_get_errstr
	mov	x2, x0
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_brcmf_dbg
Lloh24:
	adrp	x8, _EBADE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBADE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	ldr	x8, [x19]
	ldr	w9, [sp, #12]
	cmp	x8, #0
	csel	w0, w20, w9, eq
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_BUS_UP,8,3               ; @BRCMF_BUS_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bus is down. we have nothing to do.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_uint,4,2                       ; @uint
	.comm	_BRCMF_DCMD_MAXLEN,4,2          ; @BRCMF_DCMD_MAXLEN
	.comm	_FIL,4,2                        ; @FIL
l_.str.1:                               ; @.str.1
	.asciz	"Failed: error=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Firmware error: %s (%d)\n"

	.comm	_EBADE,4,2                      ; @EBADE
	.no_dead_strip	_brcmf_fil_cmd_data
.subsections_via_symbols
