	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkcs11_start_helper
_pkcs11_start_helper:                   ## @pkcs11_start_helper
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	_fork
	movq	_pid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.4:
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movl	-28(%rbp), %edi
	callq	_close
	movl	-32(%rbp), %eax
	movq	_fd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movq	%rax, %rsi
	callq	_error
	movl	$-1, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_13
## %bb.10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
LBB0_5:
	movl	-28(%rbp), %edi
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.6:
	movl	-28(%rbp), %edi
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	cmpl	$-1, %eax
	jne	LBB0_7
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	__exit
LBB0_7:
	movl	-32(%rbp), %edi
	callq	_close
	movl	-28(%rbp), %edi
	callq	_close
	movq	__PATH_SSH_PKCS11_HELPER@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	%rdi, %rsi
	xorl	%edx, %edx
	callq	_execlp
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socketpair: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_pid,4,2                        ## @pid
L_.str.1:                               ## @.str.1
	.asciz	"fork: %s"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"dup2: %s\n"

	.comm	__PATH_SSH_PKCS11_HELPER,8,3    ## @_PATH_SSH_PKCS11_HELPER
L_.str.3:                               ## @.str.3
	.asciz	"exec: %s: %s\n"

	.comm	_fd,4,2                         ## @fd
	.no_dead_strip	_pkcs11_start_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkcs11_start_helper
_pkcs11_start_helper:                   ; @pkcs11_start_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	w2, #0
	bl	_socketpair
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	bl	_fork
Lloh9:
	adrp	x8, _pid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pid@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	cbz	w0, LBB0_10
; %bb.3:
	ldr	w0, [sp, #20]
	bl	_close
	mov	w0, #0
	ldr	w8, [sp, #16]
Lloh12:
	adrp	x9, _fd@GOTPAGE
Lloh13:
	ldr	x9, [x9, _fd@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	b	LBB0_7
LBB0_4:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_error
	mov	w0, #-1
LBB0_7:
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
LBB0_10:
	ldr	w0, [sp, #20]
Lloh28:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_dup2
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [sp, #20]
Lloh31:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_dup2
	cmn	w0, #1
	b.ne	LBB0_13
LBB0_12:
Lloh34:
	adrp	x8, _stderr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh36:
	ldr	w19, [x8]
Lloh37:
	adrp	x8, _errno@GOTPAGE
Lloh38:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	b	LBB0_14
LBB0_13:
	ldr	w0, [sp, #16]
	bl	_close
	ldr	w0, [sp, #20]
	bl	_close
Lloh42:
	adrp	x20, __PATH_SSH_PKCS11_HELPER@GOTPAGE
Lloh43:
	ldr	x20, [x20, __PATH_SSH_PKCS11_HELPER@GOTPAGEOFF]
	ldr	x0, [x20]
	mov	x1, x0
	mov	x2, #0
	bl	_execlp
Lloh44:
	adrp	x8, _stderr@GOTPAGE
Lloh45:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh46:
	ldr	w19, [x8]
	ldr	x20, [x20]
Lloh47:
	adrp	x8, _errno@GOTPAGE
Lloh48:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
LBB0_14:
	bl	_fprintf
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socketpair: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_pid,4,2                        ; @pid
l_.str.1:                               ; @.str.1
	.asciz	"fork: %s"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"dup2: %s\n"

	.comm	__PATH_SSH_PKCS11_HELPER,8,3    ; @_PATH_SSH_PKCS11_HELPER
l_.str.3:                               ; @.str.3
	.asciz	"exec: %s: %s\n"

	.comm	_fd,4,2                         ; @fd
	.no_dead_strip	_pkcs11_start_helper
.subsections_via_symbols
