	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmcam_set_hue
_ibmcam_set_hue:                        ## @ibmcam_set_hue
	.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, %rbx
	callq	_IBMCAM_T
	movl	(%rax), %eax
	cmpl	$131, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$133, %eax
	jne	LBB0_8
## %bb.2:
	movl	4(%rbx), %eax
	shrl	$9, %eax
	cmpw	%ax, 16(%rbx)
	jne	LBB0_3
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %ecx
	movl	4(%rbx), %eax
	shrl	$9, %eax
	addl	$20, %eax
	addl	$-128, %ecx
	cmpl	$2, %ecx
	ja	LBB0_5
## %bb.6:
	movslq	%ecx, %rcx
	leaq	l_switch.table.ibmcam_set_hue(%rip), %rdx
	movl	(%rdx,%rcx,4), %r12d
	leaq	l_switch.table.ibmcam_set_hue.1(%rip), %rdx
	movl	(%rdx,%rcx,4), %r13d
	leaq	l_switch.table.ibmcam_set_hue.2(%rip), %rdx
	movl	(%rdx,%rcx,4), %r14d
	jmp	LBB0_7
LBB0_3:
	movw	%ax, 16(%rbx)
	movq	_mod2_hue@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ibmcam_model2_Packet1          ## TAILCALL
LBB0_5:
	movl	$175, %r14d
	movl	$166, %r13d
	movl	$120, %r12d
LBB0_7:
	movzwl	%ax, %r15d
	movl	%r15d, %edi
	movl	$1, %esi
	movl	$127, %edx
	callq	_RESTRICT_TO_RANGE
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$170, %edx
	movl	$301, %ecx                      ## imm = 0x12D
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$30, %edx
	movl	$303, %ecx                      ## imm = 0x12F
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$53569, %edx                    ## imm = 0xD141
	movl	$292, %ecx                      ## imm = 0x124
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	$295, %ecx                      ## imm = 0x127
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	$302, %ecx                      ## imm = 0x12E
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	$304, %ecx                      ## imm = 0x130
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$35368, %edx                    ## imm = 0x8A28
	movl	$292, %ecx                      ## imm = 0x124
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	$301, %ecx                      ## imm = 0x12D
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$62789, %edx                    ## imm = 0xF545
	movl	$292, %ecx                      ## imm = 0x124
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ibmcam_veio                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mod2_hue,4,2                   ## @mod2_hue
	.no_dead_strip	_ibmcam_set_hue
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ibmcam_set_hue
l_switch.table.ibmcam_set_hue:
	.long	160                             ## 0xa0
	.long	70                              ## 0x46
	.long	90                              ## 0x5a

	.p2align	2                               ## @switch.table.ibmcam_set_hue.1
l_switch.table.ibmcam_set_hue.1:
	.long	175                             ## 0xaf
	.long	166                             ## 0xa6
	.long	166                             ## 0xa6

	.p2align	2                               ## @switch.table.ibmcam_set_hue.2
l_switch.table.ibmcam_set_hue.2:
	.long	185                             ## 0xb9
	.long	185                             ## 0xb9
	.long	175                             ## 0xaf

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmcam_set_hue
_ibmcam_set_hue:                        ; @ibmcam_set_hue
	.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
	bl	_IBMCAM_T
	ldr	w8, [x0]
	cmp	w8, #131
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #133
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #4]
	lsr	w9, w8, #9
	ldrh	w10, [x19, #16]
	cmp	w10, w9, uxth
	b.ne	LBB0_6
LBB0_3:
	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
LBB0_4:
	ldp	w9, w8, [x19]
	lsr	w8, w8, #9
	add	w8, w8, #20
	sub	w9, w9, #128
	cmp	w9, #2
	b.hi	LBB0_7
; %bb.5:
	sbfiz	x9, x9, #2, #32
Lloh0:
	adrp	x10, l_switch.table.ibmcam_set_hue@PAGE
Lloh1:
	add	x10, x10, l_switch.table.ibmcam_set_hue@PAGEOFF
	ldr	w22, [x10, x9]
Lloh2:
	adrp	x10, l_switch.table.ibmcam_set_hue.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.ibmcam_set_hue.1@PAGEOFF
	ldr	w23, [x10, x9]
Lloh4:
	adrp	x10, l_switch.table.ibmcam_set_hue.2@PAGE
Lloh5:
	add	x10, x10, l_switch.table.ibmcam_set_hue.2@PAGEOFF
	ldr	w20, [x10, x9]
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x10, _mod2_hue@GOTPAGE
Lloh7:
	ldr	x10, [x10, _mod2_hue@GOTPAGEOFF]
	strh	w9, [x19, #16]
Lloh8:
	ldr	w1, [x10]
	ubfx	w2, w8, #9, #16
	mov	x0, x19
	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
	b	_ibmcam_model2_Packet1
LBB0_7:
	mov	w20, #175
	mov	w23, #166
	mov	w22, #120
LBB0_8:
	and	w21, w8, #0xffff
	mov	x0, x21
	mov	w1, #1
	mov	w2, #127
	bl	_RESTRICT_TO_RANGE
	mov	x0, x19
	mov	w1, #0
	mov	w2, #170
	mov	w3, #301
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #30
	mov	w3, #303
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #53569
	mov	w3, #292
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	mov	w3, #295
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	mov	w3, #302
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	w3, #304
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #35368
	mov	w3, #292
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	mov	w3, #301
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #62789
	mov	w3, #292
	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
	b	_ibmcam_veio
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mod2_hue,4,2                   ; @mod2_hue
	.no_dead_strip	_ibmcam_set_hue
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ibmcam_set_hue
l_switch.table.ibmcam_set_hue:
	.long	160                             ; 0xa0
	.long	70                              ; 0x46
	.long	90                              ; 0x5a

	.p2align	2                               ; @switch.table.ibmcam_set_hue.1
l_switch.table.ibmcam_set_hue.1:
	.long	175                             ; 0xaf
	.long	166                             ; 0xa6
	.long	166                             ; 0xa6

	.p2align	2                               ; @switch.table.ibmcam_set_hue.2
l_switch.table.ibmcam_set_hue.2:
	.long	185                             ; 0xb9
	.long	185                             ; 0xb9
	.long	175                             ; 0xaf

.subsections_via_symbols
