	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfa_ioc_mbox_send
_bfa_ioc_mbox_send:                     ## @bfa_ioc_mbox_send
	.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	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_BFI_IOC_MSGLEN_MAX@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpl	%edx, (%r12)
	setl	%dil
	callq	_BUG_ON
	cmpl	$4, %r15d
	jae	LBB0_7
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_7:
	movslq	%r15d, %rax
	shrq	$2, %rax
	cmpq	$2, %rax
	movl	$1, %r15d
	cmovaeq	%rax, %r15
	xorl	%ebx, %ebx
	movq	%r15, %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx), %edi
	callq	_cpu_to_le32
	movq	8(%r13), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_writel
	addq	$4, %rbx
	decq	%r15
	jne	LBB0_8
## %bb.2:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
LBB0_3:
	movslq	(%r12), %rax
	shrq	$2, %rax
	cmpq	%r14, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(,%r14,4), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_writel
	incq	%r14
	movslq	(%r12), %rax
	shrq	$2, %rax
	addq	$4, %rbx
	cmpq	%r14, %rax
	ja	LBB0_5
LBB0_6:
	movq	(%r13), %rsi
	movl	$1, %edi
	callq	_writel
	movq	(%r13), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readl                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BFI_IOC_MSGLEN_MAX,4,2         ## @BFI_IOC_MSGLEN_MAX
	.no_dead_strip	_bfa_ioc_mbox_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfa_ioc_mbox_send
_bfa_ioc_mbox_send:                     ; @bfa_ioc_mbox_send
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _BFI_IOC_MSGLEN_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BFI_IOC_MSGLEN_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w2
	cset	w0, lt
	bl	_BUG_ON
	cmp	w21, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_5
LBB0_2:
	mov	x23, #0
	sxtw	x8, w21
	lsr	x8, x8, #2
	cmp	x8, #1
	csinc	x21, x8, xzr, hi
	mov	x24, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x23]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	add	x1, x23, x8
	bl	_writel
	add	x23, x23, #4
	subs	x24, x24, #1
	b.ne	LBB0_3
; %bb.4:
	and	x20, x21, #0xffffffff
LBB0_5:
	ldrsw	x8, [x22]
	cmp	x20, x8, lsr #2
	b.hs	LBB0_8
; %bb.6:
	lsl	x21, x20, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x21, x8
	mov	w0, #0
	bl	_writel
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x21, x21, #4
	cmp	x20, x8, lsr #2
	b.lo	LBB0_7
LBB0_8:
	ldr	x1, [x19]
	mov	w0, #1
	bl	_writel
	ldr	x0, [x19]
	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
	b	_readl
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BFI_IOC_MSGLEN_MAX,4,2         ; @BFI_IOC_MSGLEN_MAX
	.no_dead_strip	_bfa_ioc_mbox_send
.subsections_via_symbols
