	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pattern_trig_compute_brightness
_pattern_trig_compute_brightness:       ## @pattern_trig_compute_brightness
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, (%rdi)
	movq	8(%rdi), %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %ecx
	movq	_UPDATE_INTERVAL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_3
LBB0_2:
	movl	4(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %rbx
	movq	16(%rdi), %rcx
	movq	(%rcx), %rdi
	movslq	4(%rax), %rax
	subq	%rax, %rdi
	callq	_abs
	imull	(%rbx), %eax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rsi
	cltd
	idivl	(%rcx)
	movslq	4(%rcx), %rcx
	cmpq	%rcx, (%rsi)
	jle	LBB0_5
## %bb.4:
	addl	%ecx, %eax
	jmp	LBB0_6
LBB0_5:
	subl	%eax, %ecx
	movl	%ecx, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_UPDATE_INTERVAL,4,2            ## @UPDATE_INTERVAL
	.no_dead_strip	_pattern_trig_compute_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pattern_trig_compute_brightness
_pattern_trig_compute_brightness:       ; @pattern_trig_compute_brightness
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w9, [x0]
	ldr	x8, [x0, #8]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _UPDATE_INTERVAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _UPDATE_INTERVAL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_4
LBB0_2:
	ldr	w0, [x8, #4]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
	ldr	x9, [x0, #16]
	ldr	x9, [x9]
	ldrsw	x8, [x8, #4]
	sub	x0, x9, x8
	bl	_abs
	ldr	w8, [x19]
	mul	w9, w8, w0
	ldp	x8, x10, [x19, #8]
	ldr	x10, [x10]
	ldp	w11, w8, [x8]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sdiv	w9, w9, w11
	cmp	x10, x8
	b.le	LBB0_6
; %bb.5:
	add	w0, w8, w9
	b	LBB0_3
LBB0_6:
	sub	w0, w8, w9
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UPDATE_INTERVAL,4,2            ; @UPDATE_INTERVAL
	.no_dead_strip	_pattern_trig_compute_brightness
.subsections_via_symbols
