	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_chain                       ## -- Begin function do_chain
	.p2align	4, 0x90
_do_chain:                              ## @do_chain
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%edi, %edi
	jle	LBB0_26
## %bb.1:
	movl	%edi, %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$1, %ecx
	leaq	L_.str(%rip), %r14
	leaq	L_.str.1(%rip), %r12
	xorl	%r15d, %r15d
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r15d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, -144(%rbp)                ## 8-byte Folded Reload
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rbx,8), %r13
	cmpb	$45, (%r13)
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rsi,%rbx,8)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_eqstr
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_eqstr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	$1, %ecx
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_eqstr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_eqstr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	jne	LBB0_3
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_27
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_26
## %bb.14:
	leaq	L_.str.10(%rip), %r15
	leaq	-112(%rbp), %rbx
	movq	_stderr@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movl	%ecx, -132(%rbp)                ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	callq	_xfree
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	-132(%rbp), %ecx                ## 4-byte Reload
	movq	-160(%rbp), %rax                ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rax
	cmpq	-144(%rbp), %rax                ## 8-byte Folded Reload
	je	LBB0_28
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movq	(%rsi,%rax,8), %r13
	testq	%r13, %r13
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	testl	%ecx, %ecx
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	callq	_fflush
	movq	%r13, %rdi
	leaq	-128(%rbp), %rsi
	callq	_read_certificates
	testq	%rax, %rax
	je	LBB0_34
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %r13
	movl	(%r12), %edi
	movq	-128(%rbp), %rdx
	cmpq	$2, %rdx
	leaq	L_.str.9(%rip), %rcx
	leaq	L_.str.8(%rip), %rax
	cmovaeq	%rax, %rcx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	leaq	-128(%rbp), %rsi
	callq	_read_certificates
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_34
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpq	$0, -128(%rbp)
	je	LBB0_15
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	movq	%r13, %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r14,%r13), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sprintf
	movq	(%r12), %rsi
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	callq	_print_blob
	movq	(%r12), %rdi
	callq	_xfree
	incq	%r13
	addq	$16, %r12
	cmpq	-128(%rbp), %r13
	jb	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	addq	%r13, %r14
	movq	_stderr@GOTPCREL(%rip), %r12
	movq	-152(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_15
LBB0_26:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_27:
	xorl	%eax, %eax
	callq	_usage_chain
LBB0_34:
	movl	$-1, %r12d
	jmp	LBB0_35
LBB0_28:
	leaq	L_.str.11(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_printf
	testq	%r14, %r14
	jle	LBB0_32
## %bb.29:
	leaq	L_.str.13(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %ebx
	cmpq	$1, %r14
	je	LBB0_33
## %bb.30:
	movl	$1, %ebx
	leaq	L_.str.13(%rip), %r15
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	$44, %edi
	callq	_putchar
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_31
LBB0_32:
	movq	%r14, %rbx
LBB0_33:
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_.str.15(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-v"

L_.str.1:                               ## @.str.1
	.asciz	"-verbose"

L_.str.2:                               ## @.str.2
	.asciz	"-q"

L_.str.3:                               ## @.str.3
	.asciz	"-quiet"

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"ERROR: unknown option: '%s'\n"

L_.str.5:                               ## @.str.5
	.asciz	"ERROR: no certificate file provided\n"

L_.str.6:                               ## @.str.6
	.asciz	"Reading file '%s': "

L_.str.7:                               ## @.str.7
	.asciz	"%lu certificate%s\n"

L_.str.8:                               ## @.str.8
	.asciz	"s"

L_.str.9:                               ## @.str.9
	.space	1

L_.str.10:                              ## @.str.10
	.asciz	"CERT%ld"

L_.str.11:                              ## @.str.11
	.asciz	"\nstatic const br_x509_certificate CHAIN[] = {"

L_.str.13:                              ## @.str.13
	.asciz	"\n\t{ (unsigned char *)CERT%ld, sizeof CERT%ld }"

L_.str.15:                              ## @.str.15
	.asciz	"\n#define CHAIN_LEN   %ld\n"

L_str:                                  ## @str
	.asciz	"\n};"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_chain                       ; -- Begin function do_chain
	.p2align	2
_do_chain:                              ; @do_chain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	cmp	w0, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x22, x1
	mov	w27, #0
	mov	w25, w0
	mov	w26, #1
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh7:
	adrp	x23, l_.str.2@PAGE
Lloh8:
	add	x23, x23, l_.str.2@PAGEOFF
	mov	x28, x25
	mov	x19, x1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #8
	subs	x28, x28, #1
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19]
	ldrb	w8, [x24]
	cmp	w8, #45
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x19]
	mov	x0, x24
	mov	x1, x20
	bl	_eqstr
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x21
	bl	_eqstr
	cbz	x0, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #1
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_eqstr
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_eqstr
	cbz	x0, LBB0_34
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	b	LBB0_3
LBB0_11:
	cbz	w27, LBB0_24
; %bb.12:
	mov	x27, #0
	mov	x24, #0
Lloh11:
	adrp	x20, l_.str.10@PAGE
Lloh12:
	add	x20, x20, l_.str.10@PAGEOFF
Lloh13:
	adrp	x28, _stderr@GOTPAGE
Lloh14:
	ldr	x28, [x28, _stderr@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	bl	_xfree
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x27, x27, #1
	cmp	x27, x25
	b.eq	LBB0_27
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	ldr	x23, [x22, x27, lsl #3]
	cbz	x23, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	cbz	w26, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x28]
	str	x23, [sp]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	ldr	w0, [x28]
	bl	_fflush
	add	x1, sp, #24
	mov	x0, x23
	bl	_read_certificates
	cbz	x0, LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x21, x0
	ldr	w0, [x28]
	ldr	x8, [sp, #24]
	cmp	x8, #1
Lloh17:
	adrp	x9, l_.str.9@PAGE
Lloh18:
	add	x9, x9, l_.str.9@PAGEOFF
Lloh19:
	adrp	x10, l_.str.8@PAGE
Lloh20:
	add	x10, x10, l_.str.8@PAGEOFF
	csel	x9, x10, x9, hi
	stp	x8, x9, [sp]
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x1, sp, #24
	mov	x0, x23
	bl	_read_certificates
	mov	x21, x0
	cbz	x0, LBB0_26
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x19, #0
	mov	x23, x21
LBB0_22:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w2, w24, w19
	add	x0, sp, #38
	mov	x1, x20
	bl	_sprintf
	ldr	x1, [x23]
	ldr	w2, [x23, #8]
	add	x0, sp, #38
	bl	_print_blob
	ldr	x0, [x23], #16
	bl	_xfree
	add	x19, x19, #1
	ldr	x8, [sp, #24]
	cmp	x19, x8
	b.lo	LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x24, x24, x19
	b	LBB0_13
LBB0_24:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_25:
	bl	_fprintf
	bl	_usage_chain
LBB0_26:
	mov	w0, #-1
	b	LBB0_32
LBB0_27:
Lloh28:
	adrp	x0, l_.str.11@PAGE
Lloh29:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
	cmp	x24, #1
	b.lt	LBB0_31
; %bb.28:
	stp	xzr, xzr, [sp]
Lloh30:
	adrp	x0, l_.str.13@PAGE
Lloh31:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_printf
	cmp	x24, #1
	b.eq	LBB0_31
; %bb.29:
	mov	w20, #1
Lloh32:
	adrp	x19, l_.str.13@PAGE
Lloh33:
	add	x19, x19, l_.str.13@PAGEOFF
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #44
	bl	_putchar
	stp	x20, x20, [sp]
	mov	x0, x19
	bl	_printf
	add	x20, x20, #1
	cmp	x24, x20
	b.ne	LBB0_30
LBB0_31:
Lloh34:
	adrp	x0, l_str@PAGE
Lloh35:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	str	x24, [sp]
Lloh36:
	adrp	x0, l_.str.15@PAGE
Lloh37:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_printf
	mov	w0, #0
LBB0_32:
	ldr	x8, [sp, #88]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.33:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_34:
Lloh41:
	adrp	x8, _stderr@GOTPAGE
Lloh42:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-v"

l_.str.1:                               ; @.str.1
	.asciz	"-verbose"

l_.str.2:                               ; @.str.2
	.asciz	"-q"

l_.str.3:                               ; @.str.3
	.asciz	"-quiet"

	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"ERROR: unknown option: '%s'\n"

l_.str.5:                               ; @.str.5
	.asciz	"ERROR: no certificate file provided\n"

l_.str.6:                               ; @.str.6
	.asciz	"Reading file '%s': "

l_.str.7:                               ; @.str.7
	.asciz	"%lu certificate%s\n"

l_.str.8:                               ; @.str.8
	.asciz	"s"

l_.str.9:                               ; @.str.9
	.space	1

l_.str.10:                              ; @.str.10
	.asciz	"CERT%ld"

l_.str.11:                              ; @.str.11
	.asciz	"\nstatic const br_x509_certificate CHAIN[] = {"

l_.str.13:                              ; @.str.13
	.asciz	"\n\t{ (unsigned char *)CERT%ld, sizeof CERT%ld }"

l_.str.15:                              ; @.str.15
	.asciz	"\n#define CHAIN_LEN   %ld\n"

l_str:                                  ; @str
	.asciz	"\n};"

.subsections_via_symbols
