	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_temp_file
_create_temp_file:                      ## @create_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rsi), %edi
	movq	_CB_MAX_FILENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	callq	*16(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	4(%r14), %edi
	movq	__O_RDWR@GOTPCREL(%rip), %rax
	movq	__O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	__O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	__O_BINARY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	__S_IREAD@GOTPCREL(%rip), %rax
	movq	__S_IWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	8(%rbx), %r8d
	leaq	-20(%rbp), %rcx
	callq	*(%rbx)
	movl	%eax, (%r14)
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_FCIERR_TEMP_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERROR_FUNCTION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_5
LBB0_4:
	movq	_FCIERR_TEMP_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%rbp), %edx
LBB0_5:
	movq	%rbx, %rdi
	callq	_set_error
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CB_MAX_FILENAME,4,2            ## @CB_MAX_FILENAME
	.comm	_FCIERR_TEMP_FILE,4,2           ## @FCIERR_TEMP_FILE
	.comm	_ERROR_FUNCTION_FAILED,4,2      ## @ERROR_FUNCTION_FAILED
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	__O_RDWR,4,2                    ## @_O_RDWR
	.comm	__O_CREAT,4,2                   ## @_O_CREAT
	.comm	__O_EXCL,4,2                    ## @_O_EXCL
	.comm	__O_BINARY,4,2                  ## @_O_BINARY
	.comm	__S_IREAD,4,2                   ## @_S_IREAD
	.comm	__S_IWRITE,4,2                  ## @_S_IWRITE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_create_temp_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_temp_file
_create_temp_file:                      ; @create_temp_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x1, #4]
Lloh0:
	adrp	x9, _CB_MAX_FILENAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CB_MAX_FILENAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	ldr	w2, [x19, #8]
	blr	x8
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x9, __O_RDWR@GOTPAGE
Lloh4:
	ldr	x9, [x9, __O_RDWR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, __O_CREAT@GOTPAGE
Lloh7:
	ldr	x10, [x10, __O_CREAT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, __O_EXCL@GOTPAGE
Lloh10:
	ldr	x10, [x10, __O_EXCL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh12:
	adrp	x10, __O_BINARY@GOTPAGE
Lloh13:
	ldr	x10, [x10, __O_BINARY@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w1, w9, w10
Lloh15:
	adrp	x9, __S_IREAD@GOTPAGE
Lloh16:
	ldr	x9, [x9, __S_IREAD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, __S_IWRITE@GOTPAGE
Lloh19:
	ldr	x10, [x10, __S_IWRITE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w2, w10, w9
	ldr	w4, [x19, #8]
	add	x3, sp, #12
	blr	x8
	str	w0, [x20]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
Lloh21:
	adrp	x8, _TRUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh23:
	adrp	x8, _FCIERR_TEMP_FILE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FCIERR_TEMP_FILE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _ERROR_FUNCTION_FAILED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR_FUNCTION_FAILED@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	b	LBB0_5
LBB0_4:
Lloh29:
	adrp	x8, _FCIERR_TEMP_FILE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FCIERR_TEMP_FILE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
LBB0_5:
	mov	x0, x19
	bl	_set_error
Lloh32:
	adrp	x8, _FALSE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CB_MAX_FILENAME,4,2            ; @CB_MAX_FILENAME
	.comm	_FCIERR_TEMP_FILE,4,2           ; @FCIERR_TEMP_FILE
	.comm	_ERROR_FUNCTION_FAILED,4,2      ; @ERROR_FUNCTION_FAILED
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	__O_RDWR,4,2                    ; @_O_RDWR
	.comm	__O_CREAT,4,2                   ; @_O_CREAT
	.comm	__O_EXCL,4,2                    ; @_O_EXCL
	.comm	__O_BINARY,4,2                  ; @_O_BINARY
	.comm	__S_IREAD,4,2                   ; @_S_IREAD
	.comm	__S_IWRITE,4,2                  ; @_S_IWRITE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_create_temp_file
.subsections_via_symbols
