	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmcam_adjust_contrast
_ibmcam_adjust_contrast:                ## @ibmcam_adjust_contrast
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	12(%rdi), %eax
	movl	%eax, %ecx
	shrl	$12, %ecx
	testl	$983040, %eax                   ## imm = 0xF0000
	movzbl	%cl, %eax
	movl	$15, %r14d
	cmovel	%eax, %r14d
	movb	$15, %bl
	subb	%r14b, %bl
	cmpb	8(%rdi), %bl
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movb	%bl, 8(%rdi)
	callq	_IBMCAM_T
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_5
## %bb.3:
	movq	_contrast_14@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movzbl	%bl, %r14d
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ibmcam_Packet_Format1
	movq	%r15, %rdi
	callq	_ibmcam_send_FF_04_02
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ibmcam_Packet_Format1
	movq	%r15, %rdi
	callq	_ibmcam_send_FF_04_02
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ibmcam_Packet_Format1
	movq	%r15, %rdi
	callq	_ibmcam_send_FF_04_02
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ibmcam_Packet_Format1
	movq	%r15, %rdi
	callq	_ibmcam_send_FF_04_02
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ibmcam_Packet_Format1
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ibmcam_send_FF_04_02           ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	shrl	%r14d
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	$6, %edx
	callq	_RESTRICT_TO_RANGE
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$268, %ecx                      ## imm = 0x10C
	callq	_ibmcam_veio
	leaq	(%r14,%r14,2), %rbx
	leaq	_ibmcam_adjust_contrast.cv(%rip), %r14
	movzwl	(%r14,%rbx,2), %edx
	movq	%r15, %rdi
	movl	$103, %esi
	callq	_ibmcam_model3_Packet1
	movzwl	2(%r14,%rbx,2), %edx
	movq	%r15, %rdi
	movl	$91, %esi
	callq	_ibmcam_model3_Packet1
	movzwl	4(%r14,%rbx,2), %edx
	movq	%r15, %rdi
	movl	$92, %esi
	callq	_ibmcam_model3_Packet1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$276, %ecx                      ## imm = 0x114
	callq	_ibmcam_veio
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$192, %edx
	movl	$268, %ecx                      ## imm = 0x10C
	callq	_ibmcam_veio
	movl	(%r15), %esi
	movl	4(%r15), %ebx
	movl	%ebx, %edi
	callq	_usb_rcvisocpipe
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_clear_halt                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_contrast_14,4,2                ## @contrast_14
	.section	__TEXT,__const
	.p2align	4                               ## @ibmcam_adjust_contrast.cv
_ibmcam_adjust_contrast.cv:
	.short	5                               ## 0x5
	.short	5                               ## 0x5
	.short	15                              ## 0xf
	.short	4                               ## 0x4
	.short	4                               ## 0x4
	.short	22                              ## 0x16
	.short	2                               ## 0x2
	.short	3                               ## 0x3
	.short	22                              ## 0x16
	.short	2                               ## 0x2
	.short	8                               ## 0x8
	.short	22                              ## 0x16
	.short	1                               ## 0x1
	.short	12                              ## 0xc
	.short	22                              ## 0x16
	.short	1                               ## 0x1
	.short	14                              ## 0xe
	.short	22                              ## 0x16
	.short	1                               ## 0x1
	.short	16                              ## 0x10
	.short	22                              ## 0x16

	.no_dead_strip	_ibmcam_adjust_contrast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmcam_adjust_contrast
_ibmcam_adjust_contrast:                ; @ibmcam_adjust_contrast
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #12]
	ubfx	w9, w8, #12, #8
	tst	w8, #0xf0000
	mov	w8, #15
	csel	w21, w9, w8, eq
	sub	w20, w8, w21
	ldrb	w8, [x0, #8]
	cmp	w8, w20, uxtb
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	strb	w20, [x0, #8]
	bl	_IBMCAM_T
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x21, _contrast_14@GOTPAGE
Lloh1:
	ldr	x21, [x21, _contrast_14@GOTPAGEOFF]
	ldr	w1, [x21]
	and	w20, w20, #0xff
	mov	x0, x19
	mov	x2, x20
	bl	_ibmcam_Packet_Format1
	mov	x0, x19
	bl	_ibmcam_send_FF_04_02
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_ibmcam_Packet_Format1
	mov	x0, x19
	bl	_ibmcam_send_FF_04_02
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_ibmcam_Packet_Format1
	mov	x0, x19
	bl	_ibmcam_send_FF_04_02
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_ibmcam_Packet_Format1
	mov	x0, x19
	bl	_ibmcam_send_FF_04_02
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_ibmcam_Packet_Format1
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ibmcam_send_FF_04_02
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	lsr	w20, w21, #1
	mov	w21, #6
	mov	x0, x20
	mov	w1, #0
	mov	w2, #6
	bl	_RESTRICT_TO_RANGE
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #268
	bl	_ibmcam_veio
Lloh2:
	adrp	x8, _ibmcam_adjust_contrast.cv@PAGE
Lloh3:
	add	x8, x8, _ibmcam_adjust_contrast.cv@PAGEOFF
	umaddl	x20, w20, w21, x8
	ldrh	w2, [x20]
	mov	x0, x19
	mov	w1, #103
	bl	_ibmcam_model3_Packet1
	ldrh	w2, [x20, #2]
	mov	x0, x19
	mov	w1, #91
	bl	_ibmcam_model3_Packet1
	ldrh	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #92
	bl	_ibmcam_model3_Packet1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #276
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #192
	mov	w3, #268
	bl	_ibmcam_veio
	ldp	w1, w20, [x19]
	mov	x0, x20
	bl	_usb_rcvisocpipe
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_usb_clear_halt
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_contrast_14,4,2                ; @contrast_14
	.section	__TEXT,__const
	.p2align	1                               ; @ibmcam_adjust_contrast.cv
_ibmcam_adjust_contrast.cv:
	.short	5                               ; 0x5
	.short	5                               ; 0x5
	.short	15                              ; 0xf
	.short	4                               ; 0x4
	.short	4                               ; 0x4
	.short	22                              ; 0x16
	.short	2                               ; 0x2
	.short	3                               ; 0x3
	.short	22                              ; 0x16
	.short	2                               ; 0x2
	.short	8                               ; 0x8
	.short	22                              ; 0x16
	.short	1                               ; 0x1
	.short	12                              ; 0xc
	.short	22                              ; 0x16
	.short	1                               ; 0x1
	.short	14                              ; 0xe
	.short	22                              ; 0x16
	.short	1                               ; 0x1
	.short	16                              ; 0x10
	.short	22                              ; 0x16

	.no_dead_strip	_ibmcam_adjust_contrast
.subsections_via_symbols
