	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_hal_put_rel_wr_xfer
_qat_hal_put_rel_wr_xfer:               ## @qat_hal_put_rel_wr_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -96(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	l___const.qat_hal_put_rel_wr_xfer.micro_inst+16(%rip), %eax
	movl	%eax, -64(%rbp)
	movaps	l___const.qat_hal_put_rel_wr_xfer.micro_inst(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_CTX_ENABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_qat_hal_rd_ae_csr
	movq	_CE_INUSE_CONTEXTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.5:
	movl	$65504, %eax                    ## imm = 0xFFE0
	testb	$1, %bl
	je	LBB0_2
## %bb.6:
	movzbl	%bl, %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_1:
	movl	$65520, %eax                    ## imm = 0xFFF0
LBB0_2:
	movzwl	%r14w, %esi
	testl	%esi, %eax
	jne	LBB0_8
## %bb.3:
	movl	%r12d, %edi
	callq	_qat_hal_get_reg_addr
	movl	%eax, %r12d
	movq	_BAD_REGADDR@GOTPCREL(%rip), %rax
	cmpw	(%rax), %r12w
	jne	LBB0_9
## %bb.4:
	movzwl	%r12w, %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	callq	_pr_err
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%rax,4), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	_ICP_GPB_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rax, %r14
	movzbl	%r15b, %esi
	movl	%esi, -88(%rbp)                 ## 4-byte Spill
	movzbl	%bl, %edx
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	leaq	-100(%rbp), %r9
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_qat_hal_rd_rel_reg
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_qat_hal_get_reg_addr
	movl	%eax, %r13d
	movl	-96(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	shrl	$16, %eax
	movq	_ICP_NO_DEST@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movzbl	%al, %esi
	callq	_qat_hal_get_reg_addr
	movl	%eax, %r14d
	movl	(%r15), %edi
	movzbl	%bl, %esi
	callq	_qat_hal_get_reg_addr
                                        ## kill: def $ax killed $ax def $eax
	movl	%ebx, %ecx
	shrl	$4, %ecx
	andl	$267386880, %ecx                ## imm = 0xFF00000
	andl	$1023, %r13d                    ## imm = 0x3FF
	shll	$10, %r13d
	andl	$1023, %r14d                    ## imm = 0x3FF
	orl	%r13d, %ecx
	orl	%r14d, %ecx
	orl	%ecx, -80(%rbp)
	shll	$12, %ebx
	andl	$267386880, %ebx                ## imm = 0xFF00000
	andl	$1023, %eax                     ## imm = 0x3FF
	orl	%r13d, %ebx
	orl	%eax, %ebx
	orl	%ebx, -76(%rbp)
	andl	$1023, %r12d                    ## imm = 0x3FF
	shll	$20, %r12d
	orl	%r13d, %r12d
	orl	%r12d, -72(%rbp)
	movzwl	-92(%rbp), %eax                 ## 2-byte Folded Reload
	leaq	-80(%rbp), %rcx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movl	-88(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movq	-112(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	$1, %r9d
	pushq	$0
	pushq	%rax
	callq	_qat_hal_exec_micro_inst
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	_ICP_GPB_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-100(%rbp), %r9d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%r8d, %r8d
	callq	_qat_hal_wr_rel_reg
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.qat_hal_put_rel_wr_xfer.micro_inst
l___const.qat_hal_put_rel_wr_xfer.micro_inst:
	.long	1073741824                      ## 0x40000000
	.long	1073741824                      ## 0x40000000
	.long	0                               ## 0x0
	.long	787200                          ## 0xc0300
	.long	65536                           ## 0x10000

	.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: 4-ctx mode,ctx=0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BAD_REGADDR,2,1                ## @BAD_REGADDR
L_.str.1:                               ## @.str.1
	.asciz	"QAT: bad xfrAddr=0x%x\n"

	.comm	_ICP_GPB_REL,4,2                ## @ICP_GPB_REL
	.comm	_ICP_NO_DEST,4,2                ## @ICP_NO_DEST
	.no_dead_strip	_qat_hal_put_rel_wr_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function qat_hal_put_rel_wr_xfer
lCPI0_0:
	.long	4294967292                      ; 0xfffffffc
	.long	4294967284                      ; 0xfffffff4
lCPI0_1:
	.long	4                               ; 0x4
	.long	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_qat_hal_put_rel_wr_xfer:               ; @qat_hal_put_rel_wr_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, l___const.qat_hal_put_rel_wr_xfer.micro_inst@PAGE
Lloh4:
	add	x8, x8, l___const.qat_hal_put_rel_wr_xfer.micro_inst@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #32]
	ldr	w8, [x8, #16]
	str	w8, [sp, #48]
	add	x0, sp, #32
	bl	_ARRAY_SIZE
	mov	x22, x0
Lloh5:
	adrp	x8, _CTX_ENABLES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTX_ENABLES@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_qat_hal_rd_ae_csr
Lloh8:
	adrp	x8, _CE_INUSE_CONTEXTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CE_INUSE_CONTEXTS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	tbnz	w19, #0, LBB0_6
; %bb.2:
	mov	w8, #65504
	tst	w8, w24
	b.ne	LBB0_8
	b	LBB0_4
LBB0_3:
	mov	w8, #65520
	tst	w8, w24
	b.ne	LBB0_8
LBB0_4:
	mov	x0, x25
	mov	x1, x24
	bl	_qat_hal_get_reg_addr
	mov	x24, x0
Lloh11:
	adrp	x8, _BAD_REGADDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BAD_REGADDR@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
LBB0_7:
	bl	_pr_err
LBB0_8:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	ldr	x8, [sp, #56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_11:
	add	w27, w22, w22, lsl #2
Lloh23:
	adrp	x8, _ICP_GPB_REL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ICP_GPB_REL@GOTPAGEOFF]
	ldr	w3, [x8]
	mov	x25, x8
	add	x5, sp, #28
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #0
	bl	_qat_hal_rd_rel_reg
	ldr	w0, [x25]
	mov	w1, #0
	bl	_qat_hal_get_reg_addr
Lloh25:
	adrp	x28, _ICP_NO_DEST@GOTPAGE
Lloh26:
	ldr	x28, [x28, _ICP_NO_DEST@GOTPAGEOFF]
	ldr	w8, [x28]
	fmov	s0, w23
	dup.2s	v1, w23
Lloh27:
	adrp	x9, lCPI0_0@PAGE
Lloh28:
	ldr	d2, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v2, v0, v2
Lloh29:
	adrp	x9, lCPI0_1@PAGE
Lloh30:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	ushl.2s	v0, v1, v0
	mov.s	v2[1], v0[1]
	str	q2, [sp]                        ; 16-byte Folded Spill
	and	w9, w0, #0x3ff
	lsl	w26, w9, #10
	ubfx	w1, w23, #16, #8
	mov	x0, x8
	bl	_qat_hal_get_reg_addr
	mov	x25, x0
	ldr	w0, [x28]
	and	w1, w23, #0xff
	bl	_qat_hal_get_reg_addr
	mov	w8, #267386880
	dup.2s	v0, w8
	ldr	d1, [sp, #32]
	ldr	q2, [sp]                        ; 16-byte Folded Reload
	and.8b	v0, v2, v0
	fmov	s2, w25
	mov.s	v2[1], w0
	movi.2s	v3, #3, msl #8
	and.8b	v2, v2, v3
	dup.2s	v3, w26
	orr.8b	v0, v3, v0
	orr.8b	v0, v0, v2
	orr.8b	v0, v0, v1
	str	d0, [sp, #32]
	ldr	w8, [sp, #40]
	and	w9, w24, #0x3ff
	bfi	w26, w9, #20, #10
	orr	w8, w26, w8
	str	w8, [sp, #40]
	and	w6, w27, #0xffff
	add	x3, sp, #32
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x4, x22
	mov	w5, #1
	mov	x7, #0
	bl	_qat_hal_exec_micro_inst
	mov	x22, x0
Lloh31:
	adrp	x8, _ICP_GPB_REL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ICP_GPB_REL@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	ldr	w5, [sp, #28]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #0
	bl	_qat_hal_wr_rel_reg
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdr	Lloh29, Lloh30
	.loh AdrpAdrp	Lloh27, Lloh29
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.qat_hal_put_rel_wr_xfer.micro_inst
l___const.qat_hal_put_rel_wr_xfer.micro_inst:
	.long	1073741824                      ; 0x40000000
	.long	1073741824                      ; 0x40000000
	.long	0                               ; 0x0
	.long	787200                          ; 0xc0300
	.long	65536                           ; 0x10000

	.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: 4-ctx mode,ctx=0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BAD_REGADDR,2,1                ; @BAD_REGADDR
l_.str.1:                               ; @.str.1
	.asciz	"QAT: bad xfrAddr=0x%x\n"

	.comm	_ICP_GPB_REL,4,2                ; @ICP_GPB_REL
	.comm	_ICP_NO_DEST,4,2                ; @ICP_NO_DEST
	.no_dead_strip	_qat_hal_put_rel_wr_xfer
.subsections_via_symbols
