	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hifn_setup_crypto_command
_hifn_setup_crypto_command:             ## @hifn_setup_crypto_command
	.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	%r9d, %r14d
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movzwl	%bx, %edi
	callq	___cpu_to_le16
	movq	%rax, 24(%r12)
	shrl	$16, %ebx
	movq	_HIFN_CRYPT_CMD_SRCLEN_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_HIFN_CRYPT_CMD_SRCLEN_M@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	orl	32(%rbp), %ebx
	movl	%ebx, %edi
	callq	___cpu_to_le16
	movq	%rax, 16(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movq	_HIFN_DMAIER_C_WAIT@GOTPCREL(%rip), %rax
	movl	(%r13), %edx
	orl	(%rax), %edx
	movl	%edx, (%r13)
	movq	_HIFN_1_DMA_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_hifn_write_1
LBB0_2:
	movl	24(%rbp), %r13d
	leaq	128(%r12), %rbx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	leaq	(%rbx,%rax,4), %rbx
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	movq	16(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movslq	%r13d, %rax
	leaq	(%rbx,%rax,4), %rbx
LBB0_6:
	subq	%r12, %rbx
	shrq	$2, %rbx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIFN_CRYPT_CMD_SRCLEN_S,4,2    ## @HIFN_CRYPT_CMD_SRCLEN_S
	.comm	_HIFN_CRYPT_CMD_SRCLEN_M,4,2    ## @HIFN_CRYPT_CMD_SRCLEN_M
	.comm	_HIFN_DMAIER_C_WAIT,4,2         ## @HIFN_DMAIER_C_WAIT
	.comm	_HIFN_1_DMA_IER,4,2             ## @HIFN_1_DMA_IER
	.no_dead_strip	_hifn_setup_crypto_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hifn_setup_crypto_command
_hifn_setup_crypto_command:             ; @hifn_setup_crypto_command
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x7
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x2
	mov	x19, x1
	mov	x25, x0
	ldr	w26, [x29, #16]
	ldr	x27, [x0, #8]
	and	w0, w2, #0xffff
	bl	___cpu_to_le16
	str	x0, [x19, #24]
	lsr	w8, w24, #16
Lloh0:
	adrp	x9, _HIFN_CRYPT_CMD_SRCLEN_S@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HIFN_CRYPT_CMD_SRCLEN_S@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh3:
	adrp	x9, _HIFN_CRYPT_CMD_SRCLEN_M@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HIFN_CRYPT_CMD_SRCLEN_M@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w8, w9
	orr	w0, w8, w26
	bl	___cpu_to_le16
	stp	xzr, x0, [x19, #8]
	add	x24, x19, #128
	str	xzr, [x19]
	ldr	w8, [x27]
	add	w9, w8, #1
	str	w9, [x27]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _HIFN_DMAIER_C_WAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HIFN_DMAIER_C_WAIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w2, w9, w8
	str	w2, [x25]
Lloh9:
	adrp	x8, _HIFN_1_DMA_IER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HIFN_1_DMA_IER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_hifn_write_1
LBB0_2:
	cbz	w22, LBB0_4
; %bb.3:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	add	x24, x24, w22, sxtw #2
LBB0_4:
	cbz	w20, LBB0_6
; %bb.5:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	add	x24, x24, w20, sxtw #2
LBB0_6:
	sub	x8, x24, x19
	lsr	x0, x8, #2
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HIFN_CRYPT_CMD_SRCLEN_S,4,2    ; @HIFN_CRYPT_CMD_SRCLEN_S
	.comm	_HIFN_CRYPT_CMD_SRCLEN_M,4,2    ; @HIFN_CRYPT_CMD_SRCLEN_M
	.comm	_HIFN_DMAIER_C_WAIT,4,2         ; @HIFN_DMAIER_C_WAIT
	.comm	_HIFN_1_DMA_IER,4,2             ; @HIFN_1_DMA_IER
	.no_dead_strip	_hifn_setup_crypto_command
.subsections_via_symbols
