	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_get_seg_count
_ql_get_seg_count:                      ## @ql_get_seg_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_QL3022_DEVICE_ID@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.10:
	popq	%rbp
	retq
LBB0_1:
	movzwl	%si, %eax
	cmpw	$2, %ax
	ja	LBB0_3
## %bb.2:
	incl	%eax
	popq	%rbp
	retq
LBB0_3:
	cmpw	$6, %si
	ja	LBB0_5
## %bb.4:
	addl	$2, %eax
	popq	%rbp
	retq
LBB0_5:
	cmpw	$10, %si
	ja	LBB0_7
## %bb.6:
	addl	$3, %eax
	popq	%rbp
	retq
LBB0_7:
	cmpw	$14, %si
	ja	LBB0_9
## %bb.8:
	addl	$4, %eax
	popq	%rbp
	retq
LBB0_9:
	addl	$5, %eax
	cmpw	$19, %si
	movl	$-1, %ecx
	cmovael	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QL3022_DEVICE_ID,8,3           ## @QL3022_DEVICE_ID
	.no_dead_strip	_ql_get_seg_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_get_seg_count
_ql_get_seg_count:                      ; @ql_get_seg_count
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _QL3022_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QL3022_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
	add	w8, w1, #5
	cmp	w1, #19
	csinv	w8, w8, wzr, lo
	add	w9, w1, #4
	cmp	w1, #14
	csel	w8, w8, w9, hi
	add	w9, w1, #3
	cmp	w1, #10
	csel	w8, w8, w9, hi
	add	w9, w1, #2
	cmp	w1, #6
	csel	w8, w8, w9, hi
	cmp	w1, #2
	csinc	w0, w8, w1, hi
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QL3022_DEVICE_ID,8,3           ; @QL3022_DEVICE_ID
	.no_dead_strip	_ql_get_seg_count
.subsections_via_symbols
