	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sec_queue_res_cfg
_sec_queue_res_cfg:                     ## @sec_queue_res_cfg
	.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	%rdi, %rbx
	movq	80(%rdi), %rax
	movq	(%rax), %r14
	movq	_SEC_Q_CMD_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	8(%rdi), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	32(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	28(%rbx), %rdi
	callq	_mutex_init
	movq	_sec_alg_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_SEC_Q_CQ_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	40(%rbx), %rdx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_SEC_Q_DB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	56(%rbx), %rdx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_to_platform_device
	movl	(%rbx), %ecx
	leal	(%rcx,%rcx), %esi
	incl	%esi
	movl	%eax, %edi
	callq	_platform_get_irq
	movl	%eax, 72(%rbx)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jg	LBB0_10
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_SEC_Q_DB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	64(%rbx), %rdx
	movl	56(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_8:
	movl	(%r13), %esi
	movq	48(%rbx), %rdx
	movl	40(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
LBB0_9:
	negl	%r15d
	movl	(%r12), %esi
	movq	16(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_Q_CMD_SIZE,4,2             ## @SEC_Q_CMD_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sec_alg_callback,4,2           ## @sec_alg_callback
	.comm	_SEC_Q_CQ_SIZE,4,2              ## @SEC_Q_CQ_SIZE
	.comm	_SEC_Q_DB_SIZE,4,2              ## @SEC_Q_DB_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sec_queue_res_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sec_queue_res_cfg
_sec_queue_res_cfg:                     ; @sec_queue_res_cfg
	.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, x0
	ldr	x8, [x0, #80]
Lloh0:
	adrp	x22, _SEC_Q_CMD_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SEC_Q_CMD_SIZE@GOTPAGEOFF]
	ldr	x20, [x8]
	ldr	w1, [x22]
	add	x2, x0, #8
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.1:
	add	x0, x19, #32
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #28
	bl	_mutex_init
Lloh4:
	adrp	x8, _sec_alg_callback@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sec_alg_callback@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh7:
	adrp	x21, _SEC_Q_CQ_SIZE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SEC_Q_CQ_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, x19, #40
	ldr	w3, [x23]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	x0, [x19, #48]
	cbz	x0, LBB0_6
; %bb.2:
Lloh9:
	adrp	x24, _SEC_Q_DB_SIZE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SEC_Q_DB_SIZE@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, x19, #56
	ldr	w3, [x23]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	x0, [x19, #64]
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_to_platform_device
	ldr	w8, [x19]
	mov	w1, #1
	bfi	w1, w8, #1, #31
	bl	_platform_get_irq
	str	w0, [x19, #72]
	cmp	w0, #0
	b.le	LBB0_8
; %bb.4:
	mov	w21, #0
	b	LBB0_11
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w23, [x8]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	ldr	w1, [x24]
	ldr	x2, [x19, #64]
	ldr	w3, [x19, #56]
	mov	x0, x20
	bl	_dma_free_coherent
LBB0_9:
	ldr	w1, [x21]
	ldr	x2, [x19, #48]
	ldr	w3, [x19, #40]
	mov	x0, x20
	bl	_dma_free_coherent
LBB0_10:
	neg	w21, w23
	ldr	w1, [x22]
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #8]
	mov	x0, x20
	bl	_dma_free_coherent
LBB0_11:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_Q_CMD_SIZE,4,2             ; @SEC_Q_CMD_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sec_alg_callback,4,2           ; @sec_alg_callback
	.comm	_SEC_Q_CQ_SIZE,4,2              ; @SEC_Q_CQ_SIZE
	.comm	_SEC_Q_DB_SIZE,4,2              ; @SEC_Q_DB_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sec_queue_res_cfg
.subsections_via_symbols
