	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_proto_bcdc_set_dcmd
_brcmf_proto_bcdc_set_dcmd:             ## @brcmf_proto_bcdc_set_dcmd
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r13d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_BCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r8d, %ecx
	callq	_brcmf_dbg
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	$0, (%r15)
	movl	%ebx, %r15d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %r8d
	movl	$1, %r9d
	callq	_brcmf_proto_bcdc_msg
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_brcmf_proto_bcdc_cmplt
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	8(%r14), %edi
	callq	_le32_to_cpu
	movq	_BCDC_DCMD_ID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	movq	_BCDC_DCMD_ID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	cmpl	(%r14), %ebx
	jne	LBB0_7
## %bb.3:
	movq	_BCDC_DCMD_ERROR@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.4:
	movl	4(%r14), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_brcmf_get_ifp
	movl	%eax, %edi
	callq	_brcmf_ifname
	movl	(%r14), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_bphy_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCDC,4,2                       ## @BCDC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter, cmd %d len %d\n"

	.comm	_BCDC_DCMD_ID_MASK,4,2          ## @BCDC_DCMD_ID_MASK
	.comm	_BCDC_DCMD_ID_SHIFT,4,2         ## @BCDC_DCMD_ID_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"%s: unexpected request id %d (expected %d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BCDC_DCMD_ERROR,4,2            ## @BCDC_DCMD_ERROR
	.no_dead_strip	_brcmf_proto_bcdc_set_dcmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_proto_bcdc_set_dcmd
_brcmf_proto_bcdc_set_dcmd:             ; @brcmf_proto_bcdc_set_dcmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x25, [x8]
Lloh0:
	adrp	x8, _BCDC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCDC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x4
	bl	_brcmf_dbg
	str	wzr, [x19]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	w5, #1
	bl	_brcmf_proto_bcdc_msg
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x22
	bl	_brcmf_proto_bcdc_cmplt
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w0, [x25, #8]
	bl	_le32_to_cpu
Lloh5:
	adrp	x8, _BCDC_DCMD_ID_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BCDC_DCMD_ID_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh8:
	adrp	x9, _BCDC_DCMD_ID_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BCDC_DCMD_ID_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	asr	w22, w8, w9
	ldr	w8, [x25]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _BCDC_DCMD_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCDC_DCMD_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x25, #4]
	bl	_le32_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_brcmf_get_ifp
	bl	_brcmf_ifname
	mov	x2, x0
	ldr	w4, [x25]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_bphy_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BCDC,4,2                       ; @BCDC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter, cmd %d len %d\n"

	.comm	_BCDC_DCMD_ID_MASK,4,2          ; @BCDC_DCMD_ID_MASK
	.comm	_BCDC_DCMD_ID_SHIFT,4,2         ; @BCDC_DCMD_ID_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"%s: unexpected request id %d (expected %d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BCDC_DCMD_ERROR,4,2            ; @BCDC_DCMD_ERROR
	.no_dead_strip	_brcmf_proto_bcdc_set_dcmd
.subsections_via_symbols
