	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function helper_mix
_helper_mix:                            ## @helper_mix
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%edi, %edi
	callq	_generate_varrun_pidfile
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_generate_varrun_pidfile
	movq	%rax, %r14
	xorl	%edi, %edi
	callq	_pidfile
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
LBB0_2:
	movq	%rbx, %rdi
	callq	_check_pidfile
	leaq	L_.str.2(%rip), %rdi
	callq	_pidfile
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_errx
LBB0_4:
	movq	%rbx, %rdi
	callq	_ensure_deleted
	leaq	L_.str.2(%rip), %rdi
	callq	_check_pidfile
	leaq	L_.str(%rip), %rdi
	callq	_pidfile
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_errx
LBB0_6:
	movq	%rbx, %rdi
	callq	_ensure_deleted
	leaq	L_.str.2(%rip), %rdi
	callq	_ensure_deleted
	leaq	L_.str.4(%rip), %rdi
	callq	_ensure_deleted
	movq	%r14, %rdi
	callq	_check_pidfile
	movq	%r14, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"custom-basename"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create default pidfile"

L_.str.2:                               ## @.str.2
	.asciz	"./second.pid"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to create pidfile 'second.pid'"

L_.str.4:                               ## @.str.4
	.asciz	"./custom-basename"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.no_dead_strip	_helper_mix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function helper_mix
_helper_mix:                            ; @helper_mix
	.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	x0, #0
	bl	_generate_varrun_pidfile
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_generate_varrun_pidfile
	mov	x20, x0
	mov	x0, #0
	bl	_pidfile
Lloh2:
	adrp	x21, _EXIT_FAILURE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EXIT_FAILURE@GOTPAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_2:
	mov	x0, x19
	bl	_check_pidfile
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pidfile
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
LBB0_4:
	mov	x0, x19
	bl	_ensure_deleted
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_check_pidfile
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pidfile
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x21]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
LBB0_6:
	mov	x0, x19
	bl	_ensure_deleted
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ensure_deleted
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ensure_deleted
	mov	x0, x20
	bl	_check_pidfile
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_free
Lloh20:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"custom-basename"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create default pidfile"

l_.str.2:                               ; @.str.2
	.asciz	"./second.pid"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to create pidfile 'second.pid'"

l_.str.4:                               ; @.str.4
	.asciz	"./custom-basename"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.no_dead_strip	_helper_mix
.subsections_via_symbols
