	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_output_fd
_open_output_fd:                        ## @open_output_fd
	.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
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	movq	_S_IFMT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_S_IFREG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	cmpl	%esi, %ecx
	movq	_TEMPORARY_FILENAME_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_xsnprintf
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mkstemp                        ## TAILCALL
LBB0_2:
	cmpl	%esi, %ecx
	movl	$438, %esi                      ## imm = 0x1B6
	cmovel	%eax, %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_create_file                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_TEMPORARY_FILENAME_LENGTH,4,2  ## @TEMPORARY_FILENAME_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	".merge_link_XXXXXX"

L_.str.2:                               ## @.str.2
	.asciz	".merge_file_XXXXXX"

	.no_dead_strip	_open_output_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_output_fd
_open_output_fd:                        ; @open_output_fd
	.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
Lloh0:
	adrp	x8, _S_IFMT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IFMT@GOTPAGEOFF]
	ldr	w10, [x1]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w10
Lloh3:
	adrp	x9, _S_IFREG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_IFREG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cbz	w2, LBB0_2
; %bb.1:
Lloh6:
	adrp	x10, _TEMPORARY_FILENAME_LENGTH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TEMPORARY_FILENAME_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x10]
Lloh9:
	adrp	x10, l_.str.1@PAGE
Lloh10:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh11:
	adrp	x11, l_.str.2@PAGE
Lloh12:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	w8, w9
	csel	x3, x11, x10, eq
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_xsnprintf
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mkstemp
LBB0_2:
	mov	w11, #438
	cmp	w8, w9
	csel	w1, w10, w11, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_create_file
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_TEMPORARY_FILENAME_LENGTH,4,2  ; @TEMPORARY_FILENAME_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	".merge_link_XXXXXX"

l_.str.2:                               ; @.str.2
	.asciz	".merge_file_XXXXXX"

	.no_dead_strip	_open_output_fd
.subsections_via_symbols
