	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sign_buffer                    ## -- Begin function sign_buffer
	.p2align	4, 0x90
_sign_buffer:                           ## @sign_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r8
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_use_format@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%r9d, %r9d
	callq	_argv_array_pushl
	movq	(%r14), %r13
	movq	_SIGPIPE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sigchain_push
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	movl	$0, (%rsp)
	leaq	-64(%rbp), %r15
	movq	%r12, %rdi
	movq	%r14, %rcx
	movl	$1024, %r8d                     ## imm = 0x400
	movq	%r15, %r9
	callq	_pipe_command
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_sigchain_pop
	movq	-56(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strstr
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	%r15, %rdi
	callq	_strbuf_release
	orl	%r12d, %ebx
	je	LBB0_1
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	jmp	LBB0_9
LBB0_1:
	movq	(%r14), %rax
	cmpq	%rax, %r13
	jae	LBB0_8
## %bb.2:
	movq	%r13, %rcx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rax, %rcx
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdx
	movzbl	(%rdx,%rcx), %ebx
	cmpb	$13, %bl
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	%bl, (%rdx,%r13)
	movq	(%r14), %rax
	jmp	LBB0_6
LBB0_8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strbuf_setlen
	xorl	%eax, %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHILD_PROCESS_INIT,4,2         ## @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_use_format,8,3                 ## @use_format
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--status-fd=2"

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

	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
L_.str.2:                               ## @.str.2
	.asciz	"\n[GNUPG:] SIG_CREATED "

L_.str.3:                               ## @.str.3
	.asciz	"gpg failed to sign the data"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sign_buffer                    ; -- Begin function sign_buffer
	.p2align	2
_sign_buffer:                           ; @sign_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x4, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CHILD_PROCESS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHILD_PROCESS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp]
Lloh6:
	adrp	x8, _use_format@GOTPAGE
Lloh7:
	ldr	x8, [x8, _use_format@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	x5, #0
	bl	_argv_array_pushl
	ldr	x20, [x19]
Lloh13:
	adrp	x22, _SIGPIPE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _SIGPIPE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_sigchain_push
	ldp	x2, x1, [x21]
	add	x0, sp, #24
	mov	x5, sp
	mov	x3, x19
	mov	w4, #1024
	mov	w6, #0
	bl	_pipe_command
	mov	x21, x0
	ldr	w0, [x22]
	bl	_sigchain_pop
	ldr	x0, [sp, #8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strstr
	cmp	w0, #0
	cset	w8, eq
	orr	w21, w21, w8
	mov	x0, sp
	bl	_strbuf_release
	cbz	w21, LBB0_2
; %bb.1:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_error
	b	LBB0_10
LBB0_2:
	ldr	x8, [x19]
	cmp	x20, x8
	b.hs	LBB0_9
; %bb.3:
	mov	x9, x20
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	ldrb	w11, [x10, x9]
	cmp	w11, #13
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x9, x20
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	w11, [x10, x20]
	ldr	x8, [x19]
	b	LBB0_4
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_strbuf_setlen
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CHILD_PROCESS_INIT,4,2         ; @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_use_format,8,3                 ; @use_format
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--status-fd=2"

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

	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
l_.str.2:                               ; @.str.2
	.asciz	"\n[GNUPG:] SIG_CREATED "

l_.str.3:                               ; @.str.3
	.asciz	"gpg failed to sign the data"

.subsections_via_symbols
