	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_alg_and_key
_get_alg_and_key:                       ## @get_alg_and_key
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_free_alg
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	leaq	1(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_kstrdup
	movq	%rax, (%r12)
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_strchr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movb	$0, (%rax)
	incq	%rax
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_strlen
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	testb	$1, %al
	jne	LBB0_3
## %bb.4:
	movq	8(%r12), %rdi
	callq	_strlen
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movl	%edi, 16(%r12)
	movl	(%r15), %esi
	callq	_kmalloc
	movl	%eax, 20(%r12)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	8(%r12), %rsi
	movl	16(%r12), %edx
	movl	%eax, %edi
	callq	_hex2bin
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_EINVAL@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rcx, %r13
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	xorl	%ebx, %ebx
	subl	(%r13), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory for an argument"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_get_alg_and_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_alg_and_key
_get_alg_and_key:                       ; @get_alg_and_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_free_alg
	mov	x0, x22
	mov	w1, #58
	bl	_strchr
	add	x0, x0, #1
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kstrdup
	str	x0, [x21]
	cbz	x0, LBB0_6
; %bb.1:
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.2:
	strb	wzr, [x0], #1
	str	x0, [x21, #8]
	bl	_strlen
	tbnz	w0, #0, LBB0_5
; %bb.3:
	ldr	x0, [x21, #8]
	bl	_strlen
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w0, w8, #1
	str	w0, [x21, #16]
	ldr	w1, [x22]
	bl	_kmalloc
	str	w0, [x21, #20]
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x1, [x21, #8]
	ldr	w2, [x21, #16]
	bl	_hex2bin
	cbz	x0, LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
LBB0_7:
	str	x20, [x19]
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory for an argument"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_get_alg_and_key
.subsections_via_symbols
