	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_get_driverid            ## -- Begin function crypto_get_driverid
	.p2align	4, 0x90
_crypto_get_driverid:                   ## @crypto_get_driverid
	.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
	movq	_CRYPTOCAP_F_HARDWARE@GOTPCREL(%rip), %rax
	movq	_CRYPTOCAP_F_SOFTWARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%edx, %ecx
	je	LBB0_8
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_CRYPTO_DRIVER_LOCK
	movq	_crypto_drivers_num@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movq	_crypto_drivers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CRYPTOCAP_F_CLEANUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addq	$16, %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	addq	$24, %rcx
	cmpq	%rbx, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%edx, -16(%rcx)
	jne	LBB0_3
LBB0_6:
	cmpl	%eax, %ebx
	je	LBB0_10
## %bb.7:
	movq	_crypto_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_13
LBB0_8:
	movq	%r15, %rdi
	callq	_device_get_nameunit
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_19
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	leal	(%rax,%rax), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_16
## %bb.11:
	shll	$4, %eax
	leal	(%rax,%rax,2), %edi
	movq	_M_CRYPTO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	%rax, %r13
	movq	_crypto_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_crypto_drivers_num@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edx
	movq	%r13, %rdi
	callq	_memmove
	movq	_crypto_drivers_num@GOTPCREL(%rip), %rax
	shll	(%rax)
	movq	_crypto_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_M_CRYPTO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	_crypto_drivers@GOTPCREL(%rip), %rax
	movq	%r13, (%rax)
LBB0_13:
	movl	%ebx, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	movl	$1, 4(%r13,%rax)
	movq	%r15, 16(%r13,%rax)
	movq	_crypto_drivers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, (%rcx,%rax)
	movq	%r12, 8(%rcx,%rax)
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_device_get_nameunit
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_printf
LBB0_15:
	xorl	%eax, %eax
	callq	_CRYPTO_DRIVER_UNLOCK
	jmp	LBB0_20
LBB0_16:
	xorl	%eax, %eax
	callq	_CRYPTO_DRIVER_UNLOCK
	leaq	L_str.4(%rip), %rdi
	jmp	LBB0_18
LBB0_17:
	xorl	%eax, %eax
	callq	_CRYPTO_DRIVER_UNLOCK
	leaq	L_str(%rip), %rdi
LBB0_18:
	callq	_puts
LBB0_19:
	movl	$-1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: no flags specified when registering driver\n"

	.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
	.comm	_M_CRYPTO_DATA,4,2              ## @M_CRYPTO_DATA
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.3:                               ## @.str.3
	.asciz	"crypto: assign %s driver id %u, flags 0x%x\n"

L_str:                                  ## @str
	.asciz	"crypto: no space to expand driver table!"

L_str.4:                                ## @str.4
	.asciz	"crypto: driver count wraparound!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_get_driverid            ; -- Begin function crypto_get_driverid
	.p2align	2
_crypto_get_driverid:                   ; @crypto_get_driverid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x0
Lloh0:
	adrp	x8, _CRYPTOCAP_F_HARDWARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTOCAP_F_HARDWARE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CRYPTOCAP_F_SOFTWARE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYPTOCAP_F_SOFTWARE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w2
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x2
	mov	x22, x1
	bl	_CRYPTO_DRIVER_LOCK
Lloh6:
	adrp	x25, _crypto_drivers_num@GOTPAGE
Lloh7:
	ldr	x25, [x25, _crypto_drivers_num@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh8:
	adrp	x24, _crypto_drivers@GOTPAGE
Lloh9:
	ldr	x24, [x24, _crypto_drivers@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x20, #0
	ldr	x10, [x24]
Lloh10:
	adrp	x9, _CRYPTOCAP_F_CLEANUP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CRYPTOCAP_F_CLEANUP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	add	x10, x10, #16
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	add	x10, x10, #24
	cmp	x8, x20
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbnz	x11, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w11, [x10, #-16]
	tst	w9, w11
	b.ne	LBB0_3
; %bb.6:
	cmp	w20, w8
	b.ne	LBB0_14
LBB0_7:
	cmp	w8, w8, lsl #1
	b.ge	LBB0_12
LBB0_8:
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #4
Lloh13:
	adrp	x26, _M_CRYPTO_DATA@GOTPAGE
Lloh14:
	ldr	x26, [x26, _M_CRYPTO_DATA@GOTPAGEOFF]
Lloh15:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	cbz	x0, LBB0_18
; %bb.9:
	mov	x23, x0
	ldr	x1, [x24]
	ldr	w8, [x25]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	bl	_memmove
	ldr	w8, [x25]
	lsl	w8, w8, #1
	str	w8, [x25]
	ldr	x0, [x24]
	ldr	w1, [x26]
	bl	_free
	str	x23, [x24]
	b	LBB0_15
LBB0_10:
	mov	x0, x21
	bl	_device_get_nameunit
	str	x0, [sp]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_20
LBB0_11:
	mov	x20, x8
	cmp	w8, w8, lsl #1
	b.lt	LBB0_8
LBB0_12:
	bl	_CRYPTO_DRIVER_UNLOCK
Lloh23:
	adrp	x0, l_str.4@PAGE
Lloh24:
	add	x0, x0, l_str.4@PAGEOFF
	b	LBB0_19
LBB0_13:
	mov	w20, #0
	cmp	w20, w8
	b.eq	LBB0_7
LBB0_14:
	ldr	x23, [x24]
LBB0_15:
	mov	w8, #24
	umaddl	x9, w20, w8, x23
	mov	w10, #1
	str	w10, [x9, #4]
	str	x21, [x9, #16]
	ldr	x9, [x24]
	umaddl	x8, w20, w8, x9
	str	w19, [x8]
	str	x22, [x8, #8]
Lloh25:
	adrp	x8, _bootverbose@GOTPAGE
Lloh26:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_device_get_nameunit
	mov	x8, x20
	stp	x8, x19, [sp, #8]
	str	x0, [sp]
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_17:
	bl	_CRYPTO_DRIVER_UNLOCK
	b	LBB0_21
LBB0_18:
	bl	_CRYPTO_DRIVER_UNLOCK
Lloh30:
	adrp	x0, l_str@PAGE
Lloh31:
	add	x0, x0, l_str@PAGEOFF
LBB0_19:
	bl	_puts
LBB0_20:
	mov	w20, #-1
LBB0_21:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTOCAP_F_HARDWARE,4,2       ; @CRYPTOCAP_F_HARDWARE
	.comm	_CRYPTOCAP_F_SOFTWARE,4,2       ; @CRYPTOCAP_F_SOFTWARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: no flags specified when registering driver\n"

	.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
	.comm	_M_CRYPTO_DATA,4,2              ; @M_CRYPTO_DATA
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.3:                               ; @.str.3
	.asciz	"crypto: assign %s driver id %u, flags 0x%x\n"

l_str:                                  ; @str
	.asciz	"crypto: no space to expand driver table!"

l_str.4:                                ; @str.4
	.asciz	"crypto: driver count wraparound!"

.subsections_via_symbols
