	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz_check_desc_num
_ksz_check_desc_num:                    ## @ksz_check_desc_num
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %r12d
	testb	$1, %r12b
	jne	LBB0_10
## %bb.1:
	xorl	%r15d, %r15d
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r13d
	incl	%r15d
	sarl	%ebx
	testb	$2, %r13b
	je	LBB0_2
## %bb.3:
	cmpl	$1, %ebx
	jne	LBB0_5
## %bb.4:
	cmpl	$1, %r15d
	jne	LBB0_9
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_alert
	cmpl	$2, %r13d
	jae	LBB0_6
	jmp	LBB0_8
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_pr_alert
	xorl	%r15d, %r15d
	movl	%r12d, %ebx
LBB0_6:
	movl	%ebx, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	sarl	%eax
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_7
LBB0_8:
	cmpl	$3, %r15d
	movl	$2, %ecx
	cmovael	%r15d, %ecx
	movl	$1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	movl	%r12d, (%r14)
LBB0_9:
	decl	%r12d
	movl	%r12d, 4(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hardware descriptor numbers not right!\n"

	.comm	_MIN_DESC_SHIFT,4,2             ## @MIN_DESC_SHIFT
	.no_dead_strip	_ksz_check_desc_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz_check_desc_num
_ksz_check_desc_num:                    ; @ksz_check_desc_num
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w22, [x0]
	tbnz	w22, #0, LBB0_6
; %bb.1:
	mov	w20, #0
	mov	x21, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x21
	add	w20, w20, #1
	asr	w21, w21, #1
	tbz	w23, #1, LBB0_2
; %bb.3:
	cmp	w21, #1
	b.ne	LBB0_5
; %bb.4:
	cmp	w20, #1
	b.ne	LBB0_9
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_alert
	cmp	w23, #2
	b.hs	LBB0_7
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_alert
	mov	w20, #0
	mov	x21, x22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	asr	w8, w21, #1
	cmp	w21, #1
	mov	x21, x8
	b.hi	LBB0_7
LBB0_8:
	mov	w8, #2
	cmp	w20, #2
	csel	w8, w20, w8, hi
	mov	w9, #1
	lsl	w22, w9, w8
	str	w22, [x19]
LBB0_9:
	sub	w8, w22, #1
	str	w8, [x19, #4]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hardware descriptor numbers not right!\n"

	.comm	_MIN_DESC_SHIFT,4,2             ; @MIN_DESC_SHIFT
	.no_dead_strip	_ksz_check_desc_num
.subsections_via_symbols
