	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child                          ## -- Begin function child
	.p2align	4, 0x90
_child:                                 ## @child
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_checked_fopen
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_checked_fopen
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_caph_enter
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_7:
	movq	%r15, (%rbx)
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	callq	_load
	movq	%rbx, %rdi
	callq	_parse
	movq	%rbx, %rdi
	callq	_signature_size
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.8:
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_10:
	leaq	L_str(%rip), %rdi
	callq	_puts
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.11:
	movq	%rbx, %rdi
	callq	_digest
	movq	%rbx, %rdi
	callq	_show_digest
	movq	%rbx, %rdi
	callq	_show_certificate
	jmp	LBB0_17
LBB0_12:
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_14:
	movq	%rbx, %rdi
	callq	_digest
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_show_digest
LBB0_16:
	movq	%rbx, %rdi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_send_digest
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_receive_signature
	movq	%rbx, %rdi
	callq	_update
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_save
LBB0_17:
	xorl	%eax, %eax
	addq	$24, %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	"r"

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

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

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

L_.str.4:                               ## @.str.4
	.asciz	"file not signed"

L_.str.6:                               ## @.str.6
	.asciz	"file already signed"

L_str:                                  ## @str
	.asciz	"file contains signature"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child                          ; -- Begin function child
	.p2align	2
_child:                                 ; @child
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x19, x1
	mov	x25, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_checked_fopen
	mov	x26, x0
	cbz	x19, LBB0_10
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_checked_fopen
	mov	x22, x0
	bl	_caph_enter
	tbz	x0, #63, LBB0_3
LBB0_2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x23, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	stp	x25, x26, [x23]
	mov	x0, x23
	bl	_load
	mov	x0, x23
	bl	_parse
	mov	x0, x23
	bl	_signature_size
	cbz	w24, LBB0_11
; %bb.6:
	cbnz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_8:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	cbz	w20, LBB0_16
; %bb.9:
	mov	x0, x23
	bl	_digest
	mov	x0, x23
	bl	_show_digest
	mov	x0, x23
	bl	_show_certificate
	b	LBB0_16
LBB0_10:
	mov	x22, #0
	bl	_caph_enter
	tbz	x0, #63, LBB0_3
	b	LBB0_2
LBB0_11:
	cbz	x0, LBB0_13
; %bb.12:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	mov	x0, x23
	bl	_digest
	cbz	w20, LBB0_15
; %bb.14:
	mov	x0, x23
	bl	_show_digest
LBB0_15:
	mov	x0, x23
	mov	x1, x21
	bl	_send_digest
	mov	x0, x23
	mov	x1, x21
	bl	_receive_signature
	mov	x0, x23
	bl	_update
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_save
LBB0_16:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.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	"r"

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

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

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

l_.str.4:                               ; @.str.4
	.asciz	"file not signed"

l_.str.6:                               ; @.str.6
	.asciz	"file already signed"

l_str:                                  ; @str
	.asciz	"file contains signature"

.subsections_via_symbols
