	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pthread_create
_pthread_create:                        ## @pthread_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_sshpam_thread_status@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, (%rbx)
	movl	4(%r15), %edi
	callq	_close
	movl	$-1, 4(%r15)
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sshpam_sigchld_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_sshpam_oldsig@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_error
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %edi
	callq	_close
	movl	$-1, (%r15)
	movq	%r15, %rdi
	callq	*%r14
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_sshpam_thread_status,4,2       ## @sshpam_thread_status
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork(): %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_sshpam_sigchld_handler,4,2     ## @sshpam_sigchld_handler
	.comm	_sshpam_oldsig,4,2              ## @sshpam_oldsig
	.no_dead_strip	_pthread_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pthread_create
_pthread_create:                        ; @pthread_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _sshpam_thread_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sshpam_thread_status@GOTPAGEOFF]
	mov	w9, #-1
Lloh2:
	str	w9, [x8]
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	cbz	w0, LBB0_5
; %bb.2:
	str	w0, [x21]
	ldr	w0, [x19, #4]
	bl	_close
	mov	w8, #-1
	str	w8, [x19, #4]
Lloh3:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _sshpam_sigchld_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sshpam_sigchld_handler@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_signal
	mov	x8, x0
	mov	w0, #0
Lloh9:
	adrp	x9, _sshpam_oldsig@GOTPAGE
Lloh10:
	ldr	x9, [x9, _sshpam_oldsig@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x19
	blr	x20
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_sshpam_thread_status,4,2       ; @sshpam_thread_status
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork(): %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_sshpam_sigchld_handler,4,2     ; @sshpam_sigchld_handler
	.comm	_sshpam_oldsig,4,2              ; @sshpam_oldsig
	.no_dead_strip	_pthread_create
.subsections_via_symbols
