	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_set_driver_name
_crypto_set_driver_name:                ## @crypto_set_driver_name
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	xorl	%r14d, %r14d
	cmpb	$0, (%rbx)
	jne	LBB0_4
## %bb.1:
	movl	8(%rdi), %esi
	movq	_CRYPTO_MAX_ALG_NAME@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_strlcpy
	cltq
	leaq	9(%rax), %rcx
	movslq	(%r15), %rdx
	cmpq	%rdx, %rcx
	jbe	LBB0_3
## %bb.2:
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	addq	%rax, %rbx
	leaq	_crypto_set_driver_name.suffix(%rip), %rsi
	movq	%rbx, %rdi
	movl	$9, %edx
	callq	_memcpy
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_crypto_set_driver_name.suffix:         ## @crypto_set_driver_name.suffix
	.asciz	"-generic"

	.comm	_CRYPTO_MAX_ALG_NAME,4,2        ## @CRYPTO_MAX_ALG_NAME
	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
	.no_dead_strip	_crypto_set_driver_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_set_driver_name
_crypto_set_driver_name:                ; @crypto_set_driver_name
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldrb	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.1:
	ldr	w1, [x0, #8]
Lloh0:
	adrp	x20, _CRYPTO_MAX_ALG_NAME@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CRYPTO_MAX_ALG_NAME@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_strlcpy
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x9, x8, #9
	ldrsw	x10, [x20]
	cmp	x9, x10
	b.ls	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	add	x0, x19, x8
Lloh5:
	adrp	x1, _crypto_set_driver_name.suffix@PAGE
Lloh6:
	add	x1, x1, _crypto_set_driver_name.suffix@PAGEOFF
	mov	w2, #9
	bl	_memcpy
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_crypto_set_driver_name.suffix:         ; @crypto_set_driver_name.suffix
	.asciz	"-generic"

	.comm	_CRYPTO_MAX_ALG_NAME,4,2        ; @CRYPTO_MAX_ALG_NAME
	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
	.no_dead_strip	_crypto_set_driver_name
.subsections_via_symbols
