	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pex_input_file                 ## -- Begin function pex_input_file
	.p2align	4, 0x90
_pex_input_file:                        ## @pex_input_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movq	_STDIN_FILE_NO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_temp_file
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %r12
	movq	_PEX_BINARY_OUTPUT@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, 32(%rbx)
	movq	%r12, 16(%rbx)
	xorl	%ecx, %ecx
	cmpq	%r14, %r12
	setne	%cl
	movl	%ecx, 24(%rbx)
	jmp	LBB0_6
LBB0_11:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILE_NO,8,3              ## @STDIN_FILE_NO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_PEX_BINARY_OUTPUT,4,2          ## @PEX_BINARY_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pex_input_file                 ; -- Begin function pex_input_file
	.p2align	2
_pex_input_file:                        ; @pex_input_file
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
	cbnz	x8, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	tbnz	x8, #63, LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, _STDIN_FILE_NO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STDIN_FILE_NO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
LBB0_4:
	mov	x0, #0
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_temp_file
	cbz	x0, LBB0_5
; %bb.7:
	mov	x22, x0
Lloh9:
	adrp	x8, _PEX_BINARY_OUTPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PEX_BINARY_OUTPUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, l_.str@PAGE
Lloh13:
	add	x9, x9, l_.str@PAGEOFF
Lloh14:
	adrp	x10, l_.str.1@PAGE
Lloh15:
	add	x10, x10, l_.str.1@PAGEOFF
	tst	w8, w21
	csel	x1, x10, x9, eq
	bl	_fopen
	cbz	x0, LBB0_9
; %bb.8:
	str	x0, [x19, #32]
	str	x22, [x19, #16]
	cmp	x22, x20
	cset	w8, ne
	str	w8, [x19, #24]
	b	LBB0_5
LBB0_9:
	mov	x0, x22
	bl	_free
	mov	x0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILE_NO,8,3              ; @STDIN_FILE_NO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_PEX_BINARY_OUTPUT,4,2          ; @PEX_BINARY_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb"

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

.subsections_via_symbols
