	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sec_probe
_sec_probe:                             ## @sec_probe
	.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, %r15
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	subl	(%rax), %r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r14
	movq	%r15, 16(%rax)
	movq	%rax, %rdi
	addq	$12, %rdi
	callq	_mutex_init
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r15, %rsi
	movl	$4, %edx
	movl	$64, %ecx
	xorl	%r8d, %r8d
	callq	_dmam_pool_create
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sec_base_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_3
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_SEC_Q_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_sec_queue_config
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_sec_queue_irq_init
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	movq	_SEC_Q_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_12
	jmp	LBB0_16
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_sec_algs_register
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_18:
	movl	%eax, %r13d
	jmp	LBB0_23
LBB0_19:
	movl	%eax, %r13d
	addq	(%r14), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sec_queue_unconfig
	jmp	LBB0_23
LBB0_20:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_sec_id_alloc
	testl	%eax, %eax
	je	LBB0_3
## %bb.21:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_sec_algs_unregister
LBB0_22:
	movl	%ebx, %r13d
LBB0_23:
	testl	%r12d, %r12d
	jle	LBB0_26
## %bb.24:
	movl	%r12d, %r15d
	leaq	-4(,%r15,4), %rbx
	incq	%r15
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_sec_queue_irq_uninit
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_sec_queue_unconfig
	decq	%r15
	addq	$-4, %rbx
	cmpq	$1, %r15
	ja	LBB0_25
LBB0_26:
	movq	%r14, %rdi
	callq	_sec_base_exit
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set 64 bit dma mask %d"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"sgl"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create sec sgl dma pool\n"

L_.str.3:                               ## @.str.3
	.asciz	"Base initialization fail! %d\n"

	.comm	_SEC_Q_NUM,4,2                  ## @SEC_Q_NUM
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register algorithms with crypto %d\n"

	.no_dead_strip	_sec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sec_probe
_sec_probe:                             ; @sec_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_mask_and_coherent
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
	str	x20, [x0, #16]
	add	x0, x0, #12
	bl	_mutex_init
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	w2, #4
	mov	w3, #64
	mov	w4, #0
	bl	_dmam_pool_create
	str	w0, [x19, #8]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_sec_base_init
	cbz	w0, LBB0_10
; %bb.5:
	mov	x21, x0
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_7:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_10:
Lloh15:
	adrp	x23, _SEC_Q_NUM@GOTPAGE
Lloh16:
	ldr	x23, [x23, _SEC_Q_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x24, #0
	mov	x22, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x1, x8, x24
	mov	x0, x19
	mov	x2, x22
	bl	_sec_queue_config
	cbnz	w0, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19]
	add	x0, x8, x24
	bl	_sec_queue_irq_init
	cbnz	w0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	cmp	x22, x8
	b.lt	LBB0_12
	b	LBB0_16
LBB0_15:
	mov	w22, #0
LBB0_16:
	bl	_sec_algs_register
	cbz	w0, LBB0_20
; %bb.17:
	mov	x21, x0
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_22
LBB0_18:
	mov	x21, x0
	b	LBB0_22
LBB0_19:
	mov	x21, x0
	ldr	x8, [x19]
	add	x1, x8, x24
	mov	x0, x19
	bl	_sec_queue_unconfig
	b	LBB0_22
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_sec_id_alloc
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.21:
	bl	_sec_algs_unregister
LBB0_22:
	cmp	w22, #1
	b.lt	LBB0_25
; %bb.23:
	mov	w8, w22
	add	x20, x8, #1
	lsl	x8, x8, #2
	sub	x22, x8, #4
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x22
	bl	_sec_queue_irq_uninit
	ldr	x8, [x19]
	add	x1, x8, x22
	mov	x0, x19
	bl	_sec_queue_unconfig
	sub	x20, x20, #1
	sub	x22, x22, #4
	cmp	x20, #1
	b.hi	LBB0_24
LBB0_25:
	mov	x0, x19
	bl	_sec_base_exit
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set 64 bit dma mask %d"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"sgl"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create sec sgl dma pool\n"

l_.str.3:                               ; @.str.3
	.asciz	"Base initialization fail! %d\n"

	.comm	_SEC_Q_NUM,4,2                  ; @SEC_Q_NUM
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register algorithms with crypto %d\n"

	.no_dead_strip	_sec_probe
.subsections_via_symbols
