	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pem_get_iv
_pem_get_iv:                            ## @pem_get_iv
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	addq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movl	$4294967209, %edx               ## imm = 0xFFFFFFA9
	xorl	%eax, %eax
	leaq	39(%rdx), %rcx
	leaq	32(%rdx), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%esi, %edi
	movl	%edi, %edx
	shll	$4, %edx
	movq	%rax, %rsi
	shrq	%rsi
	testb	$1, %al
	cmovnel	%edi, %edx
	orb	%dl, (%r14,%rsi)
	incq	%rax
	cmpq	%rax, %rbx
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rax), %esi
	leal	-48(%rsi), %edx
	movq	%rcx, %rdi
	cmpb	$10, %dl
	jb	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-65(%rsi), %edx
	movq	%r8, %rdi
	cmpb	$6, %dl
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-97(%rsi), %edx
	movl	$4294967209, %edi               ## imm = 0xFFFFFFA9
	cmpb	$6, %dl
	jb	LBB0_6
## %bb.5:
	movq	_MBEDTLS_ERR_PEM_INVALID_ENC_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_8
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_PEM_INVALID_ENC_IV,4,2 ## @MBEDTLS_ERR_PEM_INVALID_ENC_IV
	.no_dead_strip	_pem_get_iv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pem_get_iv
_pem_get_iv:                            ; @pem_get_iv
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	bl	_memset
	lsl	x8, x21, #1
	cbz	x8, LBB0_9
; %bb.1:
	mov	x9, #0
	mov	w10, #-87
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x10, #39
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w11, w12, w11
	lsl	w12, w11, #4
	lsr	x13, x9, #1
	ldrb	w14, [x19, x13]
	tst	x9, #0x1
	csel	w11, w12, w11, eq
	orr	w11, w14, w11
	strb	w11, [x19, x13]
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x20, x9]
	sub	w12, w11, #48
	cmp	w12, #10
	b.lo	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w12, w11, #65
	cmp	w12, #6
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x10, #32
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w13, w11, #97
	mov	w12, #-87
	cmp	w13, #6
	b.lo	LBB0_3
; %bb.8:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_PEM_INVALID_ENC_IV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_PEM_INVALID_ENC_IV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_PEM_INVALID_ENC_IV,4,2 ; @MBEDTLS_ERR_PEM_INVALID_ENC_IV
	.no_dead_strip	_pem_get_iv
.subsections_via_symbols
