	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdirent_comp
_sdirent_comp:                          ## @sdirent_comp
	.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), %rcx
	movq	(%rsi), %rax
	movq	_sort_flag@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_LS_REVERSE_SORT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edx, %esi
	xorl	%ebx, %ebx
	negl	%esi
	sbbl	%ebx, %ebx
	orl	$1, %ebx
	movq	_LS_NAME_SORT@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_2
## %bb.1:
	movl	8(%rcx), %edi
	movl	8(%rax), %esi
	callq	_strcmp
	jmp	LBB0_7
LBB0_2:
	movq	_LS_TIME_SORT@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_4
## %bb.3:
	movl	4(%rcx), %ecx
	xorl	%edx, %edx
	xorl	%esi, %esi
	cmpl	4(%rax), %ecx
	jmp	LBB0_6
LBB0_4:
	movq	_LS_SIZE_SORT@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_9
## %bb.5:
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	xorl	%esi, %esi
	cmpl	(%rax), %ecx
LBB0_6:
	setl	%sil
	leal	-1(%rsi,%rsi), %eax
	cmovel	%edx, %eax
LBB0_7:
	imull	%ebx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
                                        ## implicit-def: $eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_sort_flag,4,2                  ## @sort_flag
	.comm	_LS_REVERSE_SORT,4,2            ## @LS_REVERSE_SORT
	.comm	_LS_NAME_SORT,4,2               ## @LS_NAME_SORT
	.comm	_LS_TIME_SORT,4,2               ## @LS_TIME_SORT
	.comm	_LS_SIZE_SORT,4,2               ## @LS_SIZE_SORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown ls sort type"

	.no_dead_strip	_sdirent_comp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdirent_comp
_sdirent_comp:                          ; @sdirent_comp
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x10, _sort_flag@GOTPAGE
Lloh1:
	ldr	x10, [x10, _sort_flag@GOTPAGEOFF]
	ldr	x9, [x1]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _LS_REVERSE_SORT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _LS_REVERSE_SORT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	mov	w11, #1
	cneg	w19, w11, ne
Lloh6:
	adrp	x11, _LS_NAME_SORT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _LS_NAME_SORT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x8, #8]
	ldr	w1, [x9, #8]
	bl	_strcmp
	mul	w0, w0, w19
	b	LBB0_7
LBB0_2:
Lloh9:
	adrp	x11, _LS_TIME_SORT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _LS_TIME_SORT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x8, #4]
	ldr	w9, [x9, #4]
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x11, _LS_SIZE_SORT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _LS_SIZE_SORT@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.5:
	ldr	w8, [x8]
	ldr	w9, [x9]
LBB0_6:
	mov	w10, #1
	cmp	w8, w9
	cneg	w8, w10, ge
	csel	w8, wzr, w8, eq
	mul	w0, w8, w19
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
                                        ; implicit-def: $w0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_sort_flag,4,2                  ; @sort_flag
	.comm	_LS_REVERSE_SORT,4,2            ; @LS_REVERSE_SORT
	.comm	_LS_NAME_SORT,4,2               ; @LS_NAME_SORT
	.comm	_LS_TIME_SORT,4,2               ; @LS_TIME_SORT
	.comm	_LS_SIZE_SORT,4,2               ; @LS_SIZE_SORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown ls sort type"

	.no_dead_strip	_sdirent_comp
.subsections_via_symbols
