	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_cert
_parse_cert:                            ## @parse_cert
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_dup
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_sbuf_new_auto
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_sbuf_new_auto
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdx
	callq	_getline
	testl	%eax, %eax
	jle	LBB0_16
## %bb.7:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	leaq	L_.str.4(%rip), %r12
	leaq	L_.str.5(%rip), %r14
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_warnx
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	callq	_warn
	movl	%ebx, %edi
	callq	_close
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdx
	callq	_getline
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_sbuf_bcat
	jmp	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_16:
	movq	%r13, %rdi
	callq	_fclose
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_sbuf_len
	leaq	-1(%rax), %rsi
	movq	%r12, %rdi
	callq	_sbuf_setpos
	movq	%r12, %rdi
	callq	_sbuf_finish
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sbuf_finish
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_sbuf_len
	movq	%rax, %r14
	movl	%r14d, (%rbx)
	movl	$1, %edi
	movl	%r14d, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	%rax, 16(%rbx)
	movq	%r12, %rdi
	callq	_sbuf_data
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_memcpy
	movq	%r13, %rdi
	callq	_sbuf_len
	movq	%rax, 8(%rbx)
	movq	%r13, %rdi
	callq	_sbuf_data
	movl	%eax, %edi
	callq	_strdup
	movl	%eax, 4(%rbx)
	movq	%r12, %rdi
	callq	_sbuf_delete
	movq	%r13, %rdi
	callq	_sbuf_delete
LBB0_17:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lseek"

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

L_.str.2:                               ## @.str.2
	.asciz	"rb"

L_.str.3:                               ## @.str.3
	.asciz	"fdopen"

L_.str.4:                               ## @.str.4
	.asciz	"SIGNATURE\n"

L_.str.5:                               ## @.str.5
	.asciz	"CERT\n"

L_.str.6:                               ## @.str.6
	.asciz	"END\n"

	.no_dead_strip	_parse_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_cert
_parse_cert:                            ; @parse_cert
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp]
	mov	w1, #0
	mov	w2, #0
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.1:
	mov	x0, x19
	bl	_dup
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fdopen
	mov	x21, x0
	cbz	x0, LBB0_17
; %bb.3:
	bl	_sbuf_new_auto
	mov	x19, x0
	bl	_sbuf_new_auto
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, sp
	mov	x2, x21
	bl	_getline
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x26, x0
	mov	x22, #0
Lloh2:
	adrp	x23, l_.str.4@PAGE
Lloh3:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh4:
	adrp	x24, l_.str.5@PAGE
Lloh5:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh6:
	adrp	x25, l_.str.6@PAGE
Lloh7:
	add	x25, x25, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	mov	x1, sp
	mov	x2, x21
	bl	_getline
	mov	x26, x0
	cmp	w0, #0
	b.le	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x25
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x22, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x22
	mov	x2, x26
	bl	_sbuf_bcat
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x19
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x20
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	mov	x1, sp
	mov	x2, x21
	bl	_getline
	mov	x26, x0
	cmp	w0, #1
	b.ge	LBB0_6
LBB0_14:
	mov	x0, x21
	bl	_fclose
	mov	x0, x19
	bl	_sbuf_len
	sub	x1, x0, #1
	mov	x0, x19
	bl	_sbuf_setpos
	mov	x0, x19
	bl	_sbuf_finish
	mov	x0, x20
	bl	_sbuf_finish
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x21, x0
	mov	x0, x19
	bl	_sbuf_len
	mov	x22, x0
	str	w22, [x21]
	mov	w0, #1
	mov	x1, x22
	bl	_calloc
	mov	x23, x0
	str	x0, [x21, #16]
	mov	x0, x19
	bl	_sbuf_data
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_memcpy
	mov	x0, x20
	bl	_sbuf_len
	str	x0, [x21, #8]
	mov	x0, x20
	bl	_sbuf_data
	bl	_strdup
	str	w0, [x21, #4]
	mov	x0, x19
	bl	_sbuf_delete
	mov	x0, x20
	bl	_sbuf_delete
	b	LBB0_18
LBB0_15:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	x21, #0
	b	LBB0_18
LBB0_16:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	mov	x21, #0
	b	LBB0_18
LBB0_17:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	mov	x0, x19
	bl	_close
LBB0_18:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lseek"

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

l_.str.2:                               ; @.str.2
	.asciz	"rb"

l_.str.3:                               ; @.str.3
	.asciz	"fdopen"

l_.str.4:                               ; @.str.4
	.asciz	"SIGNATURE\n"

l_.str.5:                               ; @.str.5
	.asciz	"CERT\n"

l_.str.6:                               ; @.str.6
	.asciz	"END\n"

	.no_dead_strip	_parse_cert
.subsections_via_symbols
