	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_binary_fd
_open_binary_fd:                        ## @open_binary_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testl	%r14d, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_18
## %bb.1:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
LBB0_18:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_VERIFY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	movl	%eax, %r12d
	cmpl	$-1, %r12d
	jne	LBB0_21
LBB0_20:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_rtld_strerror
	leaq	L_.str.5(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	__rtld_error
	xorl	%eax, %eax
	callq	_rtld_die
LBB0_21:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	__rtld_error
	xorl	%eax, %eax
	callq	_rtld_die
LBB0_4:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	__rtld_error
	xorl	%eax, %eax
	callq	_rtld_die
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.3(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_strsep
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.3(%rip), %r13
	leaq	-64(%rbp), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	cltq
	cmpq	%rbx, %rax
	jae	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$0, (%r15)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	callq	_strlcat
	cltq
	cmpq	%rbx, %rax
	jae	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_strlcat
	cltq
	cmpq	%rbx, %rax
	jae	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_VERIFY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
	jmp	LBB0_16
LBB0_14:
	movl	%eax, %r12d
LBB0_16:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_17:
	movq	-64(%rbp), %rdi
	callq	_free
	cmpl	$-1, %r12d
	jne	LBB0_21
	jmp	LBB0_20
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH"

L_.str.1:                               ## @.str.1
	.asciz	"-p and no PATH environment variable"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot allocate memory"

	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_errno,8,3                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	":"

L_.str.4:                               ## @.str.4
	.asciz	"/"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_O_VERIFY,4,2                   ## @O_VERIFY
L_.str.5:                               ## @.str.5
	.asciz	"Cannot open %s: %s"

	.no_dead_strip	_open_binary_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_binary_fd
_open_binary_fd:                        ; @open_binary_fd
	.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
	sub	sp, sp, #16
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_6
LBB0_2:
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _O_VERIFY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _O_VERIFY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_open
	mov	x24, x0
	cmn	w24, #1
	b.ne	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	bl	_rtld_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp, #-16]!
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__rtld_error
	add	sp, sp, #16
	bl	_rtld_die
LBB0_4:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.5:
	mov	x0, x24
	sub	sp, x29, #80
	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
LBB0_6:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__rtld_error
	bl	_rtld_die
LBB0_8:
	mov	x0, x22
	bl	_strdup
	stur	x0, [x29, #-96]
	cbnz	x0, LBB0_10
; %bb.9:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__rtld_error
	bl	_rtld_die
LBB0_10:
Lloh31:
	adrp	x26, _ENOENT@GOTPAGE
Lloh32:
	ldr	x26, [x26, _ENOENT@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh33:
	adrp	x27, _errno@GOTPAGE
Lloh34:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
	str	x8, [x27]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	x0, x29, #96
	bl	_strsep
	cbz	x0, LBB0_19
; %bb.11:
	mov	x1, x0
Lloh37:
	adrp	x22, l_.str.4@PAGE
Lloh38:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh39:
	adrp	x28, _O_VERIFY@GOTPAGE
Lloh40:
	ldr	x28, [x28, _O_VERIFY@GOTPAGEOFF]
Lloh41:
	adrp	x23, l_.str.3@PAGE
Lloh42:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	x0, x29, #96
	mov	x1, x23
	bl	_strsep
	mov	x1, x0
	cbz	x0, LBB0_19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x2, x20
	bl	_strlcpy
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x20
	b.hs	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_strlcat
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x20
	b.hs	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_strlcat
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x20
	b.hs	LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh43:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh44:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh47:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_open
	cmn	w0, #1
	b.ne	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_19:
	mov	w24, #-1
LBB0_20:
	ldur	x0, [x29, #-96]
	bl	_free
	cmn	w24, #1
	b.ne	LBB0_4
	b	LBB0_3
LBB0_21:
	mov	x24, x0
	b	LBB0_20
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH"

l_.str.1:                               ; @.str.1
	.asciz	"-p and no PATH environment variable"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot allocate memory"

	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_errno,8,3                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	":"

l_.str.4:                               ; @.str.4
	.asciz	"/"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_O_VERIFY,4,2                   ; @O_VERIFY
l_.str.5:                               ; @.str.5
	.asciz	"Cannot open %s: %s"

	.no_dead_strip	_open_binary_fd
.subsections_via_symbols
