	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_pathname
_handle_pathname:                       ## @handle_pathname
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpb	$45, (%rdi)
	jne	LBB0_1
## %bb.11:
	cmpb	$0, 1(%rdi)
	je	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	movq	_suffixes@GOTPCREL(%rip), %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r14d, %rdi
	addq	%rbx, %rdi
	movq	(%r12), %rax
	movq	8(%rax), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	%rbx, %r15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_fflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_cflag@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jne	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	je	LBB0_15
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_dflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	(%r12), %rax
	movl	(%rax), %eax
	leal	(%rax,%r14), %edi
	incl	%edi
	movl	%eax, %r13d
	incl	%r13d
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_maybe_err
	jmp	LBB0_10
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_maybe_warn
LBB0_23:
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	callq	_free
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	_rflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_handle_dir
	jmp	LBB0_23
LBB0_12:
	movq	_dflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.26:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_stdin                   ## TAILCALL
LBB0_19:
	movl	-48(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_handle_file
	jmp	LBB0_23
LBB0_13:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_stdout                  ## TAILCALL
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.3(%rip), %rdi
LBB0_22:
	movq	%r15, %rsi
	callq	_maybe_warnx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_dflag,8,3                      ## @dflag
	.comm	_fflag,8,3                      ## @fflag
	.comm	_cflag,8,3                      ## @cflag
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_suffixes,8,3                   ## @suffixes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

L_.str.1:                               ## @.str.1
	.asciz	"can't stat: %s"

	.comm	_rflag,8,3                      ## @rflag
L_.str.2:                               ## @.str.2
	.asciz	"%s is a directory"

L_.str.3:                               ## @.str.3
	.asciz	"%s is not a regular file"

	.no_dead_strip	_handle_pathname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_pathname
_handle_pathname:                       ; @handle_pathname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldrb	w8, [x0]
	cmp	w8, #45
	b.ne	LBB0_2
; %bb.1:
	ldrb	w8, [x20, #1]
	cbz	w8, LBB0_18
LBB0_2:
	mov	x19, #0
Lloh0:
	adrp	x26, _cflag@GOTPAGE
Lloh1:
	ldr	x26, [x26, _cflag@GOTPAGEOFF]
Lloh2:
	adrp	x27, _dflag@GOTPAGE
Lloh3:
	ldr	x27, [x27, _dflag@GOTPAGEOFF]
Lloh4:
	adrp	x28, _errno@GOTPAGE
Lloh5:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
Lloh6:
	adrp	x22, _ENOENT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ENOENT@GOTPAGEOFF]
	mov	x21, x20
Lloh8:
	adrp	x25, _suffixes@GOTPAGE
Lloh9:
	ldr	x25, [x25, _suffixes@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_memcpy
	add	x0, x19, w24, sxtw
	ldr	x8, [x25]
	ldr	x1, [x8, #8]
	mov	x2, x23
	bl	_memcpy
	mov	x21, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_stat
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x8, _fflag@GOTPAGE
Lloh11:
	ldr	x8, [x8, _fflag@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x26]
	orr	x8, x8, x9
	cbnz	x8, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_lstat
	cbz	x0, LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	cmp	x8, #0
	ccmp	x19, #0, #0, ne
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_strlen
	mov	x24, x0
	ldr	x8, [x25]
	ldr	w8, [x8]
	add	w23, w8, #1
	add	w0, w23, w0
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_maybe_err
	b	LBB0_3
LBB0_11:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_maybe_warn
LBB0_12:
	cbz	x19, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_free
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_20
; %bb.16:
Lloh17:
	adrp	x8, _rflag@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rflag@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.17:
	mov	x0, x21
	bl	_handle_dir
	b	LBB0_12
LBB0_18:
Lloh20:
	adrp	x8, _dflag@GOTPAGE
Lloh21:
	ldr	x8, [x8, _dflag@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_handle_stdin
LBB0_20:
	ldr	w0, [sp, #8]
	bl	_S_ISREG
	cbz	x0, LBB0_24
; %bb.21:
	add	x1, sp, #8
	mov	x0, x21
	bl	_handle_file
	b	LBB0_12
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_handle_stdout
LBB0_23:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_25:
	mov	x1, x21
	bl	_maybe_warnx
	b	LBB0_12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_dflag,8,3                      ; @dflag
	.comm	_fflag,8,3                      ; @fflag
	.comm	_cflag,8,3                      ; @cflag
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_suffixes,8,3                   ; @suffixes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

l_.str.1:                               ; @.str.1
	.asciz	"can't stat: %s"

	.comm	_rflag,8,3                      ; @rflag
l_.str.2:                               ; @.str.2
	.asciz	"%s is a directory"

l_.str.3:                               ; @.str.3
	.asciz	"%s is not a regular file"

	.no_dead_strip	_handle_pathname
.subsections_via_symbols
