	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_select_kdriver
_crypto_select_kdriver:                 ## @crypto_select_kdriver
	.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	%esi, %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_CRYPTO_DRIVER_ASSERT
	movq	_CRYPTOCAP_F_HARDWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_CRYPTOCAP_F_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	movq	_crypto_drivers_num@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_crypto_drivers@GOTPCREL(%rip), %rdi
	movq	_CRYPTOCAP_F_CLEANUP@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r15
	movslq	(%r13), %rbx
	addq	$24, %r14
	cmpq	%rbx, %r15
	jge	LBB0_15
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi), %r12
	cmpq	$0, 16(%r12,%r14)
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r12,%r14), %ecx
	testl	%ecx, (%r8)
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	andl	%edx, %ecx
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r14), %rbx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_kdriver_suitable
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	_crypto_drivers@GOTPCREL(%rip), %rdi
	movq	_CRYPTOCAP_F_CLEANUP@GOTPCREL(%rip), %r8
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r12,%r14), %rcx
	cmpq	8(%rax), %rcx
	jl	LBB0_13
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	_crypto_drivers@GOTPCREL(%rip), %rdi
	movq	_CRYPTOCAP_F_CLEANUP@GOTPCREL(%rip), %r8
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_CRYPTOCAP_F_HARDWARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_17
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	testq	%rax, %rax
	jne	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %edx
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %ecx
	movq	_CRYPTOCAP_F_SOFTWARE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movl	%eax, %edx
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.19:
	xorl	%eax, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTOCAP_F_HARDWARE,4,2       ## @CRYPTOCAP_F_HARDWARE
	.comm	_CRYPTOCAP_F_SOFTWARE,4,2       ## @CRYPTOCAP_F_SOFTWARE
	.comm	_crypto_drivers_num,4,2         ## @crypto_drivers_num
	.comm	_crypto_drivers,8,3             ## @crypto_drivers
	.comm	_CRYPTOCAP_F_CLEANUP,4,2        ## @CRYPTOCAP_F_CLEANUP
	.no_dead_strip	_crypto_select_kdriver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_select_kdriver
_crypto_select_kdriver:                 ; @crypto_select_kdriver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	bl	_CRYPTO_DRIVER_ASSERT
Lloh0:
	adrp	x8, _CRYPTOCAP_F_HARDWARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTOCAP_F_HARDWARE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _CRYPTOCAP_F_SOFTWARE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPTOCAP_F_SOFTWARE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	tst	w9, w19
Lloh6:
	adrp	x25, _crypto_drivers_num@GOTPAGE
Lloh7:
	ldr	x25, [x25, _crypto_drivers_num@GOTPAGEOFF]
	csel	w26, w8, w9, eq
	ldr	w8, [x25]
Lloh8:
	adrp	x27, _crypto_drivers@GOTPAGE
Lloh9:
	ldr	x27, [x27, _crypto_drivers@GOTPAGEOFF]
Lloh10:
	adrp	x28, _CRYPTOCAP_F_CLEANUP@GOTPAGE
Lloh11:
	ldr	x28, [x28, _CRYPTOCAP_F_CLEANUP@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, #0
	mov	x24, #0
	mov	x21, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x21, x22
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x24, x24, #1
	ldrsw	x8, [x25]
	add	x23, x23, #24
	cmp	x24, x8
	b.ge	LBB0_10
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x19, [x27]
	add	x22, x19, x23
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x19, x23]
	ldr	w9, [x28]
	and	w9, w9, w8
	and	w8, w8, w26
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x22
	mov	x1, x20
	bl	_kdriver_suitable
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	cbz	x21, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x8, x19, x23
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.lt	LBB0_3
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh12:
	adrp	x9, _CRYPTOCAP_F_HARDWARE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CRYPTOCAP_F_HARDWARE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cbz	x21, LBB0_12
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, #0
	cbnz	x21, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w26, w9
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x9, x26
Lloh15:
	adrp	x10, _CRYPTOCAP_F_SOFTWARE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CRYPTOCAP_F_SOFTWARE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	mov	x26, x10
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	tst	w10, w11
	b.ne	LBB0_1
; %bb.14:
	mov	x21, #0
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTOCAP_F_HARDWARE,4,2       ; @CRYPTOCAP_F_HARDWARE
	.comm	_CRYPTOCAP_F_SOFTWARE,4,2       ; @CRYPTOCAP_F_SOFTWARE
	.comm	_crypto_drivers_num,4,2         ; @crypto_drivers_num
	.comm	_crypto_drivers,8,3             ; @crypto_drivers
	.comm	_CRYPTOCAP_F_CLEANUP,4,2        ; @CRYPTOCAP_F_CLEANUP
	.no_dead_strip	_crypto_select_kdriver
.subsections_via_symbols
