	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_cmd_access
_check_cmd_access:                      ## @check_cmd_access
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_argv_new
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_argv_parse_cmd
	movq	-32(%rbp), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	_CHKACC_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_X_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %r8
	callq	_check_file_access_chroot
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_M_NOPREFIX@GOTPCREL(%rip), %rax
	movq	_M_OPTERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_msg
	movl	$1, %ebx
LBB0_5:
	leaq	-32(%rbp), %rdi
	callq	_argv_reset
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHKACC_FILE,4,2                ## @CHKACC_FILE
	.comm	_X_OK,4,2                       ## @X_OK
	.comm	_M_NOPREFIX,4,2                 ## @M_NOPREFIX
	.comm	_M_OPTERR,4,2                   ## @M_OPTERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s fails with '%s': No path to executable."

	.no_dead_strip	_check_cmd_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_cmd_access
_check_cmd_access:                      ; @check_cmd_access
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_argv_new
	str	x0, [sp, #8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_argv_parse_cmd
	ldr	x8, [sp, #8]
	ldr	x2, [x8]
	cbz	x2, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _CHKACC_FILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHKACC_FILE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _X_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X_OK@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x4, x19
	bl	_check_file_access_chroot
	mov	x19, x0
	b	LBB0_5
LBB0_3:
	mov	w19, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _M_NOPREFIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_NOPREFIX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _M_OPTERR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _M_OPTERR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_msg
	mov	w19, #1
LBB0_5:
	add	x0, sp, #8
	bl	_argv_reset
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CHKACC_FILE,4,2                ; @CHKACC_FILE
	.comm	_X_OK,4,2                       ; @X_OK
	.comm	_M_NOPREFIX,4,2                 ; @M_NOPREFIX
	.comm	_M_OPTERR,4,2                   ; @M_OPTERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s fails with '%s': No path to executable."

	.no_dead_strip	_check_cmd_access
.subsections_via_symbols
