	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setbrightcont
_setbrightcont:                         ## @setbrightcont
	.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
	xorl	%ebx, %ebx
	movl	$255, %esi
	xorl	%edx, %edx
	callq	_reg_w
	movl	$162, %r15d
	leaq	_setbrightcont.max(%rip), %r12
	leaq	_setbrightcont.delta(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ecx, %edx
	callq	_reg_w
	incl	%r15d
	addq	$4, %rbx
	cmpq	$40, %rbx
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %edi
	subl	%edi, %ecx
	imull	$150, %ecx, %eax
	cltd
	idivl	%edi
	movl	%eax, %ecx
	addl	(%rbx,%r12), %ecx
	movl	(%rsi), %eax
	imull	(%rbx,%r13), %eax
	cltd
	idivl	8(%rsi)
	subl	%eax, %ecx
	cmpl	$255, %ecx
	jl	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$255, %ecx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, %ecx
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movl	$220, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @setbrightcont.max
_setbrightcont.max:
	.long	41                              ## 0x29
	.long	51                              ## 0x33
	.long	66                              ## 0x42
	.long	90                              ## 0x5a
	.long	110                             ## 0x6e
	.long	128                             ## 0x80
	.long	159                             ## 0x9f
	.long	187                             ## 0xbb
	.long	212                             ## 0xd4
	.long	236                             ## 0xec

	.p2align	4                               ## @setbrightcont.delta
_setbrightcont.delta:
	.long	53                              ## 0x35
	.long	51                              ## 0x33
	.long	51                              ## 0x33
	.long	47                              ## 0x2f
	.long	42                              ## 0x2a
	.long	37                              ## 0x25
	.long	30                              ## 0x1e
	.long	23                              ## 0x17
	.long	17                              ## 0x11
	.long	11                              ## 0xb

	.no_dead_strip	_setbrightcont
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setbrightcont
_setbrightcont:                         ; @setbrightcont
	.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
	mov	w20, #255
	mov	w1, #255
	mov	w2, #0
	bl	_reg_w
	mov	x21, #0
Lloh0:
	adrp	x22, _setbrightcont.max@PAGE
Lloh1:
	add	x22, x22, _setbrightcont.max@PAGEOFF
	mov	w23, #150
Lloh2:
	adrp	x24, _setbrightcont.delta@PAGE
Lloh3:
	add	x24, x24, _setbrightcont.delta@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x21, #2
	ldp	x10, x9, [x19]
	ldr	w11, [x9]
	ldr	w9, [x9, #8]
	sub	w11, w11, w9
	mul	w11, w11, w23
	sdiv	w9, w11, w9
	ldr	w11, [x24, x8]
	ldr	w12, [x10]
	mul	w11, w12, w11
	ldr	w8, [x22, x8]
	ldr	w10, [x10, #8]
	sdiv	w10, w11, w10
	add	w8, w9, w8
	sub	w8, w8, w10
	cmp	w8, #255
	csel	w8, w8, w20, lt
	cmp	w8, #0
	csel	w2, w8, wzr, gt
	add	w1, w21, #162
	mov	x0, x19
	bl	_reg_w
	add	x21, x21, #1
	cmp	x21, #10
	b.ne	LBB0_1
; %bb.2:
	mov	x0, x19
	mov	w1, #220
	mov	w2, #1
	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	_reg_w
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @setbrightcont.max
_setbrightcont.max:
	.long	41                              ; 0x29
	.long	51                              ; 0x33
	.long	66                              ; 0x42
	.long	90                              ; 0x5a
	.long	110                             ; 0x6e
	.long	128                             ; 0x80
	.long	159                             ; 0x9f
	.long	187                             ; 0xbb
	.long	212                             ; 0xd4
	.long	236                             ; 0xec

	.p2align	2                               ; @setbrightcont.delta
_setbrightcont.delta:
	.long	53                              ; 0x35
	.long	51                              ; 0x33
	.long	51                              ; 0x33
	.long	47                              ; 0x2f
	.long	42                              ; 0x2a
	.long	37                              ; 0x25
	.long	30                              ; 0x1e
	.long	23                              ; 0x17
	.long	17                              ; 0x11
	.long	11                              ; 0xb

	.no_dead_strip	_setbrightcont
.subsections_via_symbols
