	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_pem_read_buffer        ## -- Begin function mbedtls_pem_read_buffer
	.p2align	4, 0x90
_mbedtls_pem_read_buffer:               ## @mbedtls_pem_read_buffer
	.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
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rcx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %rbx
	cmpq	%r15, %rax
	jbe	LBB0_13
## %bb.4:
	movq	%r12, %rdi
	callq	_strlen
	cltq
	movq	%r15, %rcx
	addq	%rax, %rcx
	xorl	%edx, %edx
	cmpb	$32, (%r15,%rax)
	sete	%dl
	xorl	%eax, %eax
	cmpb	$13, (%rdx,%rcx)
	leaq	(%rcx,%rdx), %r12
	sete	%al
	cmpb	$10, (%rax,%r12)
	jne	LBB0_13
## %bb.5:
	movq	16(%rbp), %r15
	addq	%rax, %r12
	incq	%r12
	movq	%r13, %rdi
	callq	_strlen
	cltq
	leaq	(%rbx,%rax), %rcx
	xorl	%edx, %edx
	cmpb	$32, (%rbx,%rax)
	sete	%dl
	xorl	%eax, %eax
	cmpb	$13, (%rdx,%rcx)
	leaq	(%rcx,%rdx), %rcx
	sete	%al
	xorl	%esi, %esi
	cmpb	$10, (%rax,%rcx)
	sete	%sil
	addq	%rcx, %rsi
	addq	%rax, %rsi
	subq	%r14, %rsi
	movq	%rsi, (%r15)
	movq	%rbx, %r13
	subq	%r12, %r13
	cmpq	$21, %r13
	jle	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$22, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_18
LBB0_7:
	cmpq	%rbx, %r12
	jae	LBB0_17
## %bb.8:
	leaq	-48(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	_mbedtls_base64_decode
	movl	%eax, %ebx
	movq	_MBEDTLS_ERR_BASE64_INVALID_CHARACTER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_12
## %bb.9:
	movq	-48(%rbp), %rsi
	movl	$1, %edi
	callq	_mbedtls_calloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	%rax, %r14
	movq	-48(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	_mbedtls_base64_decode
	testl	%eax, %eax
	je	LBB0_20
## %bb.11:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mbedtls_free
LBB0_12:
	movq	_MBEDTLS_ERR_PEM_INVALID_DATA@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	jmp	LBB0_16
LBB0_13:
	movq	_MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_MBEDTLS_ERR_PEM_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_MBEDTLS_ERR_PEM_INVALID_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_18:
	movq	_MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_19:
	movq	_MBEDTLS_ERR_PEM_ALLOC_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_20:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rcx)
	movq	-48(%rbp), %rax
	movq	%rax, 8(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_PEM_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_PEM_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT,4,2 ## @MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Proc-Type: 4,ENCRYPTED"

	.comm	_MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE,4,2 ## @MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_ERR_PEM_INVALID_DATA,4,2 ## @MBEDTLS_ERR_PEM_INVALID_DATA
	.comm	_MBEDTLS_ERR_BASE64_INVALID_CHARACTER,4,2 ## @MBEDTLS_ERR_BASE64_INVALID_CHARACTER
	.comm	_MBEDTLS_ERR_PEM_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_PEM_ALLOC_FAILED
	.comm	_MBEDTLS_CIPHER_AES_128_CBC,8,3 ## @MBEDTLS_CIPHER_AES_128_CBC
	.comm	_MBEDTLS_CIPHER_AES_192_CBC,8,3 ## @MBEDTLS_CIPHER_AES_192_CBC
	.comm	_MBEDTLS_CIPHER_AES_256_CBC,8,3 ## @MBEDTLS_CIPHER_AES_256_CBC
	.comm	_MBEDTLS_CIPHER_DES_CBC,8,3     ## @MBEDTLS_CIPHER_DES_CBC
	.comm	_MBEDTLS_CIPHER_DES_EDE3_CBC,8,3 ## @MBEDTLS_CIPHER_DES_EDE3_CBC
	.comm	_MBEDTLS_CIPHER_NONE,8,3        ## @MBEDTLS_CIPHER_NONE
	.comm	_MBEDTLS_ERR_PEM_INVALID_ENC_IV,4,2 ## @MBEDTLS_ERR_PEM_INVALID_ENC_IV
	.comm	_MBEDTLS_ERR_PEM_PASSWORD_MISMATCH,4,2 ## @MBEDTLS_ERR_PEM_PASSWORD_MISMATCH
	.comm	_MBEDTLS_ERR_PEM_PASSWORD_REQUIRED,4,2 ## @MBEDTLS_ERR_PEM_PASSWORD_REQUIRED
	.comm	_MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG,4,2 ## @MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_pem_read_buffer        ; -- Begin function mbedtls_pem_read_buffer
	.p2align	2
_mbedtls_pem_read_buffer:               ; @mbedtls_pem_read_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x6
	mov	x22, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x3
	bl	_strstr
	cbz	x0, LBB0_10
; %bb.2:
	mov	x25, x0
	mov	x0, x22
	mov	x1, x24
	bl	_strstr
	cbz	x0, LBB0_10
; %bb.3:
	mov	x23, x0
	cmp	x0, x25
	b.ls	LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_strlen
	add	x8, x25, w0, sxtw
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #32
	csel	x8, x8, x9, ne
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #13
	csel	x8, x8, x9, ne
	ldrb	w9, [x8]
	cmp	w9, #10
	b.ne	LBB0_10
; %bb.5:
	add	x20, x8, #1
	mov	x0, x24
	bl	_strlen
	add	x8, x23, w0, sxtw
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #32
	csel	x8, x8, x9, ne
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #13
	csel	x8, x8, x9, ne
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #10
	csel	x8, x8, x9, ne
	sub	x8, x8, x22
	str	x8, [x21]
	sub	x21, x23, x20
	cmp	x21, #21
	b.le	LBB0_7
; %bb.6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #22
	bl	_memcmp
	cbz	x0, LBB0_18
LBB0_7:
	cmp	x20, x23
	b.hs	LBB0_14
; %bb.8:
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, #0
	mov	x3, x20
	mov	x4, x21
	bl	_mbedtls_base64_decode
Lloh2:
	adrp	x8, _MBEDTLS_ERR_BASE64_INVALID_CHARACTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_BASE64_INVALID_CHARACTER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.9:
Lloh5:
	adrp	x8, _MBEDTLS_ERR_PEM_INVALID_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_ERR_PEM_INVALID_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_13
LBB0_10:
Lloh8:
	adrp	x8, _MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _MBEDTLS_ERR_PEM_BAD_INPUT_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ERR_PEM_BAD_INPUT_DATA@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
Lloh12:
	adrp	x8, _MBEDTLS_ERR_PEM_INVALID_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ERR_PEM_INVALID_DATA@GOTPAGEOFF]
	b	LBB0_12
LBB0_15:
	ldr	x1, [sp, #8]
	mov	w0, #1
	bl	_mbedtls_calloc
	cbz	x0, LBB0_19
; %bb.16:
	mov	x22, x0
	ldr	x1, [sp, #8]
	add	x2, sp, #8
	mov	x3, x20
	mov	x4, x21
	bl	_mbedtls_base64_decode
	cbz	w0, LBB0_20
; %bb.17:
	mov	x20, x0
	mov	x0, x22
	bl	_mbedtls_free
Lloh14:
	adrp	x8, _MBEDTLS_ERR_PEM_INVALID_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MBEDTLS_ERR_PEM_INVALID_DATA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w0, w8, w20
	b	LBB0_13
LBB0_18:
Lloh17:
	adrp	x8, _MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE@GOTPAGEOFF]
	b	LBB0_12
LBB0_19:
Lloh19:
	adrp	x8, _MBEDTLS_ERR_PEM_ALLOC_FAILED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MBEDTLS_ERR_PEM_ALLOC_FAILED@GOTPAGEOFF]
	b	LBB0_12
LBB0_20:
	ldr	x8, [sp, #8]
	stp	x22, x8, [x19]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_PEM_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_PEM_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT,4,2 ; @MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Proc-Type: 4,ENCRYPTED"

	.comm	_MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE,4,2 ; @MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_ERR_PEM_INVALID_DATA,4,2 ; @MBEDTLS_ERR_PEM_INVALID_DATA
	.comm	_MBEDTLS_ERR_BASE64_INVALID_CHARACTER,4,2 ; @MBEDTLS_ERR_BASE64_INVALID_CHARACTER
	.comm	_MBEDTLS_ERR_PEM_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_PEM_ALLOC_FAILED
	.comm	_MBEDTLS_CIPHER_AES_128_CBC,8,3 ; @MBEDTLS_CIPHER_AES_128_CBC
	.comm	_MBEDTLS_CIPHER_AES_192_CBC,8,3 ; @MBEDTLS_CIPHER_AES_192_CBC
	.comm	_MBEDTLS_CIPHER_AES_256_CBC,8,3 ; @MBEDTLS_CIPHER_AES_256_CBC
	.comm	_MBEDTLS_CIPHER_DES_CBC,8,3     ; @MBEDTLS_CIPHER_DES_CBC
	.comm	_MBEDTLS_CIPHER_DES_EDE3_CBC,8,3 ; @MBEDTLS_CIPHER_DES_EDE3_CBC
	.comm	_MBEDTLS_CIPHER_NONE,8,3        ; @MBEDTLS_CIPHER_NONE
	.comm	_MBEDTLS_ERR_PEM_INVALID_ENC_IV,4,2 ; @MBEDTLS_ERR_PEM_INVALID_ENC_IV
	.comm	_MBEDTLS_ERR_PEM_PASSWORD_MISMATCH,4,2 ; @MBEDTLS_ERR_PEM_PASSWORD_MISMATCH
	.comm	_MBEDTLS_ERR_PEM_PASSWORD_REQUIRED,4,2 ; @MBEDTLS_ERR_PEM_PASSWORD_REQUIRED
	.comm	_MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG,4,2 ; @MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG
.subsections_via_symbols
