	.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
	je	LBB0_3
## %bb.1:
	movl	$-1, %eax
	cmpw	$18, %si
	ja	LBB0_3
## %bb.2:
	movswq	%si, %rax
	leaq	l_switch.table.ql_get_seg_count(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QL3022_DEVICE_ID,8,3           ## @QL3022_DEVICE_ID
	.no_dead_strip	_ql_get_seg_count
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ql_get_seg_count
l_switch.table.ql_get_seg_count:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	8                               ## 0x8
	.long	10                              ## 0xa
	.long	11                              ## 0xb
	.long	12                              ## 0xc
	.long	13                              ## 0xd
	.long	15                              ## 0xf
	.long	16                              ## 0x10
	.long	17                              ## 0x11
	.long	18                              ## 0x12
	.long	20                              ## 0x14
	.long	21                              ## 0x15
	.long	22                              ## 0x16
	.long	23                              ## 0x17

.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:
                                        ; kill: def $w1 killed $w1 def $x1
	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:
	cmp	w1, #18
	b.hi	LBB0_4
; %bb.3:
	sxth	x8, w1
Lloh3:
	adrp	x9, l_switch.table.ql_get_seg_count@PAGE
Lloh4:
	add	x9, x9, l_switch.table.ql_get_seg_count@PAGEOFF
	ldr	w0, [x9, x8, lsl #2]
	ret
LBB0_4:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_QL3022_DEVICE_ID,8,3           ; @QL3022_DEVICE_ID
	.no_dead_strip	_ql_get_seg_count
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ql_get_seg_count
l_switch.table.ql_get_seg_count:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	8                               ; 0x8
	.long	10                              ; 0xa
	.long	11                              ; 0xb
	.long	12                              ; 0xc
	.long	13                              ; 0xd
	.long	15                              ; 0xf
	.long	16                              ; 0x10
	.long	17                              ; 0x11
	.long	18                              ; 0x12
	.long	20                              ; 0x14
	.long	21                              ; 0x15
	.long	22                              ; 0x16
	.long	23                              ; 0x17

.subsections_via_symbols
