	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptls_get_pem_object
_ptls_get_pem_object:                   ## @ptls_get_pem_object
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -312(%rbp)                ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PTLS_ERROR_PEM_LABEL_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-304(%rbp), %r13
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_ptls_compare_separator_line
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	leaq	-328(%rbp), %rdi
	callq	_ptls_base64_decode_init
	jmp	LBB0_5
LBB0_4:
	testl	%ebx, %ebx
	jne	LBB0_13
LBB0_5:
	leaq	-304(%rbp), %r13
	movq	-312(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r12, %rdx
	callq	_fgets
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_ptls_compare_separator_line
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	leaq	-328(%rbp), %rsi
	movq	%r14, %rdx
	callq	_ptls_base64_decode
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_8:
	movq	-328(%rbp), %rax
	movq	_PTLS_BASE64_DECODE_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.9:
	movq	_PTLS_BASE64_DECODE_IN_PROGRESS@GOTPCREL(%rip), %rcx
	xorq	(%rcx), %rax
	xorl	%ebx, %ebx
	orq	-320(%rbp), %rax
	je	LBB0_13
## %bb.10:
	movq	_PTLS_ERROR_INCORRECT_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_ERROR_PEM_LABEL_NOT_FOUND,4,2 ## @PTLS_ERROR_PEM_LABEL_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BEGIN"

L_.str.1:                               ## @.str.1
	.asciz	"END"

	.comm	_PTLS_BASE64_DECODE_DONE,8,3    ## @PTLS_BASE64_DECODE_DONE
	.comm	_PTLS_BASE64_DECODE_IN_PROGRESS,8,3 ## @PTLS_BASE64_DECODE_IN_PROGRESS
	.comm	_PTLS_ERROR_INCORRECT_BASE64,4,2 ## @PTLS_ERROR_INCORRECT_BASE64
	.no_dead_strip	_ptls_get_pem_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptls_get_pem_object
_ptls_get_pem_object:                   ; @ptls_get_pem_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _PTLS_ERROR_PEM_LABEL_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTLS_ERROR_PEM_LABEL_NOT_FOUND@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	w1, #256
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #24
	mov	x1, x23
	mov	x2, x20
	bl	_ptls_compare_separator_line
	cbnz	x0, LBB0_1
; %bb.3:
	add	x0, sp, #8
	bl	_ptls_base64_decode_init
	b	LBB0_5
LBB0_4:
	cbnz	w22, LBB0_13
LBB0_5:
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	w1, #256
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #24
	mov	x1, x23
	mov	x2, x20
	bl	_ptls_compare_separator_line
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #24
	add	x1, sp, #8
	mov	x2, x19
	bl	_ptls_base64_decode
	cbz	w0, LBB0_6
; %bb.9:
	mov	x22, x0
	b	LBB0_13
LBB0_10:
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, _PTLS_BASE64_DECODE_DONE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PTLS_BASE64_DECODE_DONE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_11:
	mov	w22, #0
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x9, _PTLS_BASE64_DECODE_IN_PROGRESS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PTLS_BASE64_DECODE_IN_PROGRESS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x10, [sp, #16]
	cmp	x10, #0
	ccmp	x8, x9, #0, eq
Lloh16:
	adrp	x8, _PTLS_ERROR_INCORRECT_BASE64@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PTLS_ERROR_INCORRECT_BASE64@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	csel	w22, wzr, w8, eq
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x22
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_ERROR_PEM_LABEL_NOT_FOUND,4,2 ; @PTLS_ERROR_PEM_LABEL_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BEGIN"

l_.str.1:                               ; @.str.1
	.asciz	"END"

	.comm	_PTLS_BASE64_DECODE_DONE,8,3    ; @PTLS_BASE64_DECODE_DONE
	.comm	_PTLS_BASE64_DECODE_IN_PROGRESS,8,3 ; @PTLS_BASE64_DECODE_IN_PROGRESS
	.comm	_PTLS_ERROR_INCORRECT_BASE64,4,2 ; @PTLS_ERROR_INCORRECT_BASE64
	.no_dead_strip	_ptls_get_pem_object
.subsections_via_symbols
