	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_sockettest_tmppath         ## -- Begin function mrb_sockettest_tmppath
	.p2align	4, 0x90
_mrb_sockettest_tmppath:                ## @mrb_sockettest_tmppath
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movaps	L___const.mrb_sockettest_tmppath.name(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movabsq	$24866934413088856, %rax        ## imm = 0x58585858585858
	movq	%rax, -34(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_mkstemp
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mrb_sys_fail
LBB0_2:
	movl	%ebx, %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mrb_sys_fail
LBB0_4:
	leaq	-48(%rbp), %rdi
	callq	_unlink
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mrb_sys_fail
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mrb_str_new_cstr
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.mrb_sockettest_tmppath.name
L___const.mrb_sockettest_tmppath.name:
	.asciz	"mruby-socket.XXXXXXXX"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_sockettest_tmppath         ; -- Begin function mrb_sockettest_tmppath
	.p2align	2
_mrb_sockettest_tmppath:                ; @mrb_sockettest_tmppath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.mrb_sockettest_tmppath.name@PAGE
Lloh4:
	add	x8, x8, l___const.mrb_sockettest_tmppath.name@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldur	x8, [x8, #14]
	stur	x8, [sp, #14]
	mov	x0, sp
	bl	_mkstemp
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_mrb_sys_fail
LBB0_2:
	mov	x0, x20
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_mrb_sys_fail
LBB0_4:
	mov	x0, sp
	bl	_unlink
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_mrb_sys_fail
LBB0_6:
	mov	x1, sp
	mov	x0, x19
	bl	_mrb_str_new_cstr
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.mrb_sockettest_tmppath.name:  ; @__const.mrb_sockettest_tmppath.name
	.asciz	"mruby-socket.XXXXXXXX"

.subsections_via_symbols
