	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fuzzer_get_tmpfile
_fuzzer_get_tmpfile:                    ## @fuzzer_get_tmpfile
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mkstemp
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$4, %esi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_fwrite
	cmpq	%r14, %rax
	jb	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r13, %rax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	callq	_fuzzer_get_tmpfile.cold.1
	jmp	LBB0_2
LBB0_5:
	callq	_fuzzer_get_tmpfile.cold.2
	jmp	LBB0_2
LBB0_7:
	movl	%r12d, %edi
	callq	_fuzzer_get_tmpfile.cold.3
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_10:
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_close
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_fprintf
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function fuzzer_get_tmpfile.cold.1
_fuzzer_get_tmpfile.cold.1:             ## @fuzzer_get_tmpfile.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function fuzzer_get_tmpfile.cold.2
_fuzzer_get_tmpfile.cold.2:             ## @fuzzer_get_tmpfile.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function fuzzer_get_tmpfile.cold.3
_fuzzer_get_tmpfile.cold.3:             ## @fuzzer_get_tmpfile.cold.3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	movl	%ebx, %edi
	callq	_close
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/tmp/generate_temporary_file.XXXXXX"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate file name buffer."

L_.str.2:                               ## @.str.2
	.asciz	"Failed to make temporary file."

L_.str.3:                               ## @.str.3
	.asciz	"wb"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to open file descriptor."

	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"Failed to write all bytes to file (%zu out of %zu)"

	.no_dead_strip	_fuzzer_get_tmpfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fuzzer_get_tmpfile
_fuzzer_get_tmpfile:                    ; @fuzzer_get_tmpfile
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_mkstemp
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fdopen
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, x0
	mov	x0, x22
	mov	w1, #4
	mov	x2, x19
	mov	x3, x23
	bl	_fwrite
	cmp	x0, x19
	b.lo	LBB0_8
; %bb.4:
	mov	x0, x23
	bl	_fclose
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_fuzzer_get_tmpfile.cold.1
LBB0_6:
	bl	_fuzzer_get_tmpfile.cold.2
LBB0_7:
	mov	x0, x21
	bl	_fuzzer_get_tmpfile.cold.3
LBB0_8:
	mov	x22, x0
	mov	x0, x21
	bl	_close
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.5@PAGE
Lloh8:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	bl	_fprintf
	bl	_abort
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function fuzzer_get_tmpfile.cold.1
_fuzzer_get_tmpfile.cold.1:             ; @fuzzer_get_tmpfile.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	bl	_abort
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function fuzzer_get_tmpfile.cold.2
_fuzzer_get_tmpfile.cold.2:             ; @fuzzer_get_tmpfile.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	bl	_abort
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function fuzzer_get_tmpfile.cold.3
_fuzzer_get_tmpfile.cold.3:             ; @fuzzer_get_tmpfile.cold.3
	.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	x19, x0
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	mov	x0, x19
	bl	_close
	bl	_abort
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/tmp/generate_temporary_file.XXXXXX"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate file name buffer."

l_.str.2:                               ; @.str.2
	.asciz	"Failed to make temporary file."

l_.str.3:                               ; @.str.3
	.asciz	"wb"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to open file descriptor."

	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"Failed to write all bytes to file (%zu out of %zu)"

	.no_dead_strip	_fuzzer_get_tmpfile
.subsections_via_symbols
