	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_credential_helper
_run_credential_helper:                 ## @run_credential_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -80(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -96(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%rsi, -64(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
	movabsq	$-4294967295, %rax              ## imm = 0xFFFFFFFF00000001
	movq	%rax, -88(%rbp)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	$-1, -80(%rbp)
	jmp	LBB0_3
LBB0_2:
	movl	$1, -76(%rbp)
LBB0_3:
	leaq	-96(%rbp), %rdi
	callq	_start_command
	movl	$-1, %r12d
	testq	%rax, %rax
	js	LBB0_8
## %bb.4:
	movl	-84(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_xfdopen
	movq	%rax, %rbx
	movq	_SIGPIPE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sigchain_push
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_credential_write
	movq	%rbx, %rdi
	callq	_fclose
	movl	(%r13), %edi
	callq	_sigchain_pop
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	movl	-80(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_xfdopen
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_credential_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_fclose
	testl	%r14d, %r14d
	js	LBB0_6
LBB0_7:
	leaq	-96(%rbp), %rdi
	callq	_finish_command
	xorl	%r12d, %r12d
	negq	%rax
	sbbl	%r12d, %r12d
	jmp	LBB0_8
LBB0_6:
	leaq	-96(%rbp), %rdi
	callq	_finish_command
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CHILD_PROCESS_INIT,24,3        ## @CHILD_PROCESS_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
L_.str.1:                               ## @.str.1
	.asciz	"r"

	.no_dead_strip	_run_credential_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function run_credential_helper
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_run_credential_helper:                 ; @run_credential_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CHILD_PROCESS_INIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHILD_PROCESS_INIT@GOTPAGEOFF]
	str	x8, [sp, #40]
	ldr	q0, [x9]
	str	q0, [sp]
	ldr	x8, [x9, #16]
	stp	x8, x1, [sp, #16]
	str	xzr, [sp, #32]
	add	x8, sp, #24
	str	x8, [sp]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	cbz	w2, LBB0_2
; %bb.1:
	mov	w8, #-1
	str	w8, [sp, #16]
	b	LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #20]
LBB0_3:
	mov	x0, sp
	bl	_start_command
	tbnz	x0, #63, LBB0_8
; %bb.4:
	ldr	w0, [sp, #12]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xfdopen
	mov	x21, x0
Lloh9:
	adrp	x22, _SIGPIPE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SIGPIPE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh11:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_sigchain_push
	mov	x0, x19
	mov	x1, x21
	bl	_credential_write
	mov	x0, x21
	bl	_fclose
	ldr	w0, [x22]
	bl	_sigchain_pop
	cbz	w20, LBB0_6
; %bb.5:
	ldr	w0, [sp, #16]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_xfdopen
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_credential_read
	mov	x19, x0
	mov	x0, x20
	bl	_fclose
	tbnz	w19, #31, LBB0_7
LBB0_6:
	mov	x0, sp
	bl	_finish_command
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_9
LBB0_7:
	mov	x0, sp
	bl	_finish_command
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CHILD_PROCESS_INIT,24,3        ; @CHILD_PROCESS_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
l_.str.1:                               ; @.str.1
	.asciz	"r"

	.no_dead_strip	_run_credential_helper
.subsections_via_symbols
