	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkstemps                       ## -- Begin function mkstemps
	.p2align	4, 0x90
_mkstemps:                              ## @mkstemps
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_strlen
	leal	6(%rbx), %ecx
	movl	$-1, %r14d
	cmpl	%eax, %ecx
	jg	LBB0_8
## %bb.1:
	movslq	%ebx, %rcx
	subq	%rcx, %rax
	leaq	(%rax,%r15), %r12
	addq	$-6, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_getpid
	addl	_mkstemps.value(%rip), %eax
	movl	%eax, _mkstemps.value(%rip)
	movq	_TMP_MAX@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_7
## %bb.3:
	leaq	_mkstemps.letters(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cltq
	imulq	$-2078209981, %rax, %rcx        ## imm = 0x84210843
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$5, %ecx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shll	$6, %edx
	movl	%ecx, %esi
	subl	%edx, %esi
	addl	%ecx, %esi
	addl	%eax, %esi
	movslq	%esi, %rdx
	movzbl	(%rdx,%r13), %edx
	movb	%dl, (%r12)
	movslq	%ecx, %rcx
	imulq	$-2078209981, %rcx, %rdx        ## imm = 0x84210843
	shrq	$32, %rdx
	addl	%ecx, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$5, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	shll	$6, %esi
	movl	%edx, %edi
	subl	%esi, %edi
	addl	%edx, %edi
	addl	%ecx, %edi
	movslq	%edi, %rcx
	movzbl	(%rcx,%r13), %ecx
	movb	%cl, 1(%r12)
	imulq	$-2006701681, %rax, %rcx        ## imm = 0x8864298F
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$11, %ecx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	imulq	$-2078209981, %rcx, %rdx        ## imm = 0x84210843
	shrq	$32, %rdx
	addl	%ecx, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$5, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	shll	$6, %esi
	movl	%edx, %edi
	subl	%esi, %edi
	addl	%edx, %edi
	addl	%ecx, %edi
	movslq	%edi, %rcx
	movzbl	(%rcx,%r13), %ecx
	movb	%cl, 2(%r12)
	imulq	$-1932886661, %rax, %rcx        ## imm = 0x8CCA7D7B
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$17, %ecx
	addl	%edx, %ecx
	imull	$16913, %ecx, %edx              ## imm = 0x4211
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$20, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	shll	$6, %esi
	movl	%edx, %edi
	subl	%esi, %edi
	addl	%edx, %edi
	addl	%ecx, %edi
	movswq	%di, %rcx
	movzbl	(%rcx,%r13), %ecx
	movb	%cl, 3(%r12)
	imulq	$152392299, %rax, %rcx          ## imm = 0x915526B
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$51, %rcx
	addl	%edx, %ecx
	imull	$16913, %ecx, %edx              ## imm = 0x4211
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$20, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	shll	$6, %esi
	movl	%edx, %edi
	subl	%esi, %edi
	addl	%edx, %edi
	addl	%ecx, %edi
	movswq	%di, %rcx
	movzbl	(%rcx,%r13), %ecx
	movb	%cl, 4(%r12)
	imulq	$1258465437, %rax, %rax         ## imm = 0x4B02A89D
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$60, %rax
	addl	%ecx, %eax
	cltq
	movzbl	(%rax,%r13), %eax
	movb	%al, 5(%r12)
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_BINARY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	testl	%eax, %eax
	jns	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	_mkstemps.value(%rip), %eax
	movl	$7777, %ecx                     ## imm = 0x1E61
	addl	%ecx, %eax
	movl	%eax, _mkstemps.value(%rip)
	incl	%ebx
	movq	_TMP_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jl	LBB0_4
LBB0_7:
	movb	$0, (%r15)
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @mkstemps.letters
_mkstemps.letters:
	.asciz	"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

.zerofill __DATA,__bss,_mkstemps.value,4,2 ## @mkstemps.value
L_.str:                                 ## @.str
	.asciz	"XXXXXX"

	.comm	_TMP_MAX,4,2                    ## @TMP_MAX
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mkstemps                       ; -- Begin function mkstemps
	.p2align	2
_mkstemps:                              ; @mkstemps
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_strlen
	add	w8, w20, #6
	cmp	w8, w0
	b.gt	LBB0_7
; %bb.1:
	sub	x8, x0, w20, sxtw
	add	x8, x8, x19
	sub	x20, x8, #6
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #6
	bl	_strncmp
	cbnz	x0, LBB0_7
; %bb.2:
	bl	_getpid
	adrp	x21, _mkstemps.value@PAGE
	ldr	w8, [x21, _mkstemps.value@PAGEOFF]
	add	w8, w8, w0
	str	w8, [x21, _mkstemps.value@PAGEOFF]
Lloh2:
	adrp	x9, _TMP_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TMP_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w23, #0
	mov	w24, #2115
	movk	w24, #33825, lsl #16
	mov	w25, #62
	mov	w28, #16913
	mov	w22, #43165
	movk	w22, #19202, lsl #16
Lloh5:
	adrp	x27, _O_EXCL@GOTPAGE
Lloh6:
	ldr	x27, [x27, _O_EXCL@GOTPAGEOFF]
Lloh7:
	adrp	x26, _mkstemps.letters@PAGE
Lloh8:
	add	x26, x26, _mkstemps.letters@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	smull	x9, w8, w24
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #5
	add	w9, w10, w9, lsr #31
	msub	w10, w9, w25, w8
	ldrb	w10, [x26, w10, sxtw]
	strb	w10, [x20]
	smull	x10, w9, w24
	lsr	x10, x10, #32
	add	w10, w10, w9
	asr	w11, w10, #5
	add	w10, w11, w10, lsr #31
	msub	w9, w10, w25, w9
	ldrb	w9, [x26, w9, sxtw]
	strb	w9, [x20, #1]
	mov	w9, #10639
	movk	w9, #34916, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #11
	add	w9, w10, w9, lsr #31
	smull	x10, w9, w24
	lsr	x10, x10, #32
	add	w10, w10, w9
	asr	w11, w10, #5
	add	w10, w11, w10, lsr #31
	msub	w9, w10, w25, w9
	ldrb	w9, [x26, w9, sxtw]
	strb	w9, [x20, #2]
	mov	w9, #32123
	movk	w9, #36042, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #17
	add	w9, w10, w9, lsr #31
	mul	w10, w9, w28
	asr	w11, w10, #20
	add	w10, w11, w10, lsr #31
	msub	w9, w10, w25, w9
	sxth	x9, w9
	ldrb	w9, [x26, x9]
	strb	w9, [x20, #3]
	mov	w9, #21099
	movk	w9, #2325, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #51
	add	w9, w9, w10
	mul	w10, w9, w28
	asr	w11, w10, #20
	add	w10, w11, w10, lsr #31
	msub	w9, w10, w25, w9
	sxth	x9, w9
	ldrb	w9, [x26, x9]
	strb	w9, [x20, #4]
	smull	x8, w8, w22
	lsr	x9, x8, #63
	asr	x8, x8, #60
	add	w8, w8, w9
	ldrb	w8, [x26, w8, sxtw]
	strb	w8, [x20, #5]
Lloh9:
	adrp	x8, _O_BINARY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_BINARY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #384
	bl	_open
	tbz	w0, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, _mkstemps.value@PAGEOFF]
	mov	w9, #7777
	add	w8, w8, w9
	str	w8, [x21, _mkstemps.value@PAGEOFF]
	add	w23, w23, #1
Lloh18:
	adrp	x9, _TMP_MAX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TMP_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w23, w9
	b.lt	LBB0_4
LBB0_6:
	strb	wzr, [x19]
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
_mkstemps.letters:                      ; @mkstemps.letters
	.asciz	"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

.zerofill __DATA,__bss,_mkstemps.value,4,2 ; @mkstemps.value
l_.str:                                 ; @.str
	.asciz	"XXXXXX"

	.comm	_TMP_MAX,4,2                    ; @TMP_MAX
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
.subsections_via_symbols
