	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b1dma_send_message             ## -- Begin function b1dma_send_message
	.p2align	4, 0x90
_b1dma_send_message:                    ## @b1dma_send_message
	.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
	movq	%rsi, %r12
	movq	(%rdi), %r15
	movq	8(%r15), %r14
	movq	_CAPI_NOERROR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r13
	movl	(%rsi), %edi
	callq	_CAPIMSG_CMD
	movq	_CAPI_DATA_B3_REQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %edi
	callq	_CAPIMSG_APPID
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_CAPIMSG_NCCI
	movl	%eax, %r13d
	movl	(%r12), %edi
	callq	_CAPIMSG_MSGID
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	_CAPI_NOERROR@GOTPCREL(%rip), %rbx
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_capilib_data_b3_req
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_2:
	cmpq	(%rbx), %r13
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_b1dma_queue_tx
LBB0_4:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAPI_NOERROR,8,3               ## @CAPI_NOERROR
	.comm	_CAPI_DATA_B3_REQ,8,3           ## @CAPI_DATA_B3_REQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b1dma_send_message             ; -- Begin function b1dma_send_message
	.p2align	2
_b1dma_send_message:                    ; @b1dma_send_message
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x21, [x0]
	ldr	x20, [x21, #8]
Lloh0:
	adrp	x24, _CAPI_NOERROR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CAPI_NOERROR@GOTPAGEOFF]
	ldr	x22, [x24]
	ldr	w0, [x1]
	bl	_CAPIMSG_CMD
Lloh2:
	adrp	x8, _CAPI_DATA_B3_REQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAPI_DATA_B3_REQ@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w0, [x19]
	bl	_CAPIMSG_APPID
	mov	x22, x0
	ldr	w0, [x19]
	bl	_CAPIMSG_NCCI
	mov	x23, x0
	ldr	w0, [x19]
	bl	_CAPIMSG_MSGID
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_capilib_data_b3_req
	mov	x22, x0
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_2:
	ldr	x8, [x24]
	cmp	x22, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_b1dma_queue_tx
LBB0_4:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CAPI_NOERROR,8,3               ; @CAPI_NOERROR
	.comm	_CAPI_DATA_B3_REQ,8,3           ; @CAPI_DATA_B3_REQ
.subsections_via_symbols
