	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_proto_bcdc_msg
_brcmf_proto_bcdc_msg:                  ## @brcmf_proto_bcdc_msg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	leaq	8(%r15), %r14
	movq	_BCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, 24(%r15)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r15)
	movl	(%r15), %eax
	incl	%eax
	movl	%eax, (%r15)
	movq	_BCDC_DCMD_ID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_BCDC_DCMD_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_2:
	orl	%eax, %r12d
	movq	_BCDC_DCMD_IF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r12d, %eax
	movq	_BCDC_DCMD_IF_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r13d
	orl	%eax, %r13d
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	32(%r15), %edi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_4:
	addl	$24, %ebx
	movq	_BRCMF_TX_IOCTL_MAX_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovgel	%eax, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_bus_txctl                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCDC,4,2                       ## @BCDC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_BCDC_DCMD_ID_SHIFT,4,2         ## @BCDC_DCMD_ID_SHIFT
	.comm	_BCDC_DCMD_SET,4,2              ## @BCDC_DCMD_SET
	.comm	_BCDC_DCMD_IF_MASK,4,2          ## @BCDC_DCMD_IF_MASK
	.comm	_BCDC_DCMD_IF_SHIFT,4,2         ## @BCDC_DCMD_IF_SHIFT
	.comm	_BRCMF_TX_IOCTL_MAX_MSG_SIZE,4,2 ## @BRCMF_TX_IOCTL_MAX_MSG_SIZE
	.no_dead_strip	_brcmf_proto_bcdc_msg
.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_msg
_brcmf_proto_bcdc_msg:                  ; @brcmf_proto_bcdc_msg
	.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	x23, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x26, [x8]
	add	x20, x26, #8
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
	bl	_brcmf_dbg
	mov	x0, x20
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [x26, #24]
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x26, #16]
	ldr	w8, [x26]
	add	w8, w8, #1
Lloh5:
	adrp	x9, _BCDC_DCMD_ID_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BCDC_DCMD_ID_SHIFT@GOTPAGEOFF]
	str	w8, [x26]
Lloh7:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh8:
	adrp	x9, _BCDC_DCMD_SET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BCDC_DCMD_SET@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w23, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _BCDC_DCMD_IF_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BCDC_DCMD_IF_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh14:
	adrp	x9, _BCDC_DCMD_IF_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BCDC_DCMD_IF_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w9, w25, w9
	orr	w0, w8, w9
	bl	_cpu_to_le32
	str	x0, [x26, #8]
	cbz	x22, LBB0_2
; %bb.1:
	ldr	w0, [x26, #32]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
LBB0_2:
	add	w8, w21, #24
Lloh17:
	adrp	x9, _BRCMF_TX_IOCTL_MAX_MSG_SIZE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BRCMF_TX_IOCTL_MAX_MSG_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w2, w8, w9, lt
	ldr	w0, [x19]
	mov	x1, x20
	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
	b	_brcmf_bus_txctl
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BCDC,4,2                       ; @BCDC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_BCDC_DCMD_ID_SHIFT,4,2         ; @BCDC_DCMD_ID_SHIFT
	.comm	_BCDC_DCMD_SET,4,2              ; @BCDC_DCMD_SET
	.comm	_BCDC_DCMD_IF_MASK,4,2          ; @BCDC_DCMD_IF_MASK
	.comm	_BCDC_DCMD_IF_SHIFT,4,2         ; @BCDC_DCMD_IF_SHIFT
	.comm	_BRCMF_TX_IOCTL_MAX_MSG_SIZE,4,2 ; @BRCMF_TX_IOCTL_MAX_MSG_SIZE
	.no_dead_strip	_brcmf_proto_bcdc_msg
.subsections_via_symbols
