	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_hal_put_rel_rd_xfer
_qat_hal_put_rel_rd_xfer:               ## @qat_hal_put_rel_rd_xfer
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_CTX_ENABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_qat_hal_rd_ae_csr
	movl	%eax, %ebx
	movq	_CE_INUSE_CONTEXTS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	testb	$1, %r14b
	jne	LBB0_10
## %bb.3:
	movl	$32, %edx
	movl	$-32, %eax
	jmp	LBB0_4
LBB0_1:
	movl	$16, %edx
	movl	$-16, %eax
LBB0_4:
	movzwl	%r13w, %ecx
	testl	%ecx, %eax
	jne	LBB0_11
## %bb.5:
	movzbl	%r14b, %eax
	shll	$5, %eax
	addl	%ecx, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leal	-130(%rsi), %ecx
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.6:
	addl	$-128, %esi
	cmpl	$1, %esi
	ja	LBB0_11
## %bb.7:
	movzbl	%r12b, %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	jmp	LBB0_8
LBB0_10:
	movzbl	%r14b, %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	addl	%eax, %edx
	movzbl	%r12b, %esi
	movq	%r15, %rdi
LBB0_8:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_SET_AE_XFER
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTX_ENABLES,4,2                ## @CTX_ENABLES
	.comm	_CE_INUSE_CONTEXTS,4,2          ## @CE_INUSE_CONTEXTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: bad 4-ctx mode,ctx=0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qat_hal_put_rel_rd_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qat_hal_put_rel_rd_xfer
_qat_hal_put_rel_rd_xfer:               ; @qat_hal_put_rel_rd_xfer
	.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	x20, x5
	mov	x25, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _CTX_ENABLES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTX_ENABLES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_qat_hal_rd_ae_csr
	mov	x19, x0
Lloh3:
	adrp	x8, _CE_INUSE_CONTEXTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CE_INUSE_CONTEXTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	tbnz	w24, #0, LBB0_6
; %bb.2:
	mov	w8, #32
	mov	w9, #-32
	tst	w9, w25
	b.ne	LBB0_7
	b	LBB0_4
LBB0_3:
	mov	w8, #16
	mov	w9, #-16
	tst	w9, w25
	b.ne	LBB0_7
LBB0_4:
	add	w2, w25, w24, lsl #5
	sub	w9, w23, #130
	cmp	w9, #2
	b.lo	LBB0_8
; %bb.5:
	sub	w8, w23, #128
	cmp	w8, #1
	b.ls	LBB0_9
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_pr_err
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_10
LBB0_8:
	add	w2, w8, w2
LBB0_9:
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	bl	_SET_AE_XFER
LBB0_10:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CTX_ENABLES,4,2                ; @CTX_ENABLES
	.comm	_CE_INUSE_CONTEXTS,4,2          ; @CE_INUSE_CONTEXTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: bad 4-ctx mode,ctx=0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qat_hal_put_rel_rd_xfer
.subsections_via_symbols
