	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp_file
_temp_file:                             ## @temp_file
	.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
	movq	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.10:
	movq	%rdx, %rbx
	movq	_PEX_SUFFIX@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_15
## %bb.11:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.13:
	movq	%rbx, %rsi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_concat                         ## TAILCALL
LBB0_1:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.4:
	callq	_strlen
	cmpl	$6, %eax
	jl	LBB0_7
## %bb.5:
	movq	(%r14), %rcx
	movl	%eax, %eax
	leaq	(%rcx,%rax,4), %rdi
	addq	$-24, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_concat
	jmp	LBB0_8
LBB0_12:
	movq	%rbx, %rdi
	jmp	LBB0_3
LBB0_2:
	xorl	%edi, %edi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_make_temp_file                 ## TAILCALL
LBB0_6:
	movq	(%r14), %rdi
	callq	_xstrdup
LBB0_8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_mkstemps
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movl	%eax, %edi
	callq	_close
	jmp	LBB0_15
LBB0_14:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XXXXXX"

	.comm	_PEX_SUFFIX,4,2                 ## @PEX_SUFFIX
	.no_dead_strip	_temp_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp_file
_temp_file:                             ; @temp_file
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	cbz	x2, LBB0_4
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x8, _PEX_SUFFIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEX_SUFFIX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_14
; %bb.2:
	ldr	x0, [x20]
	cbz	x0, LBB0_8
; %bb.3:
	mov	x1, x19
	mov	x2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_concat
LBB0_4:
	ldr	x0, [x20]
	cbz	x0, LBB0_9
; %bb.5:
	bl	_strlen
	cmp	w0, #6
	b.lt	LBB0_7
; %bb.6:
	ldr	x8, [x20]
	add	x8, x8, w0, uxtw #2
	sub	x0, x8, #24
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
LBB0_7:
	ldr	x0, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_concat
	b	LBB0_11
LBB0_8:
	mov	x0, x19
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_make_temp_file
LBB0_10:
	ldr	x0, [x20]
	bl	_xstrdup
LBB0_11:
	mov	x19, x0
	mov	w1, #0
	bl	_mkstemps
	tbnz	w0, #31, LBB0_13
; %bb.12:
	bl	_close
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XXXXXX"

	.comm	_PEX_SUFFIX,4,2                 ; @PEX_SUFFIX
	.no_dead_strip	_temp_file
.subsections_via_symbols
