	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca963x_brightness
_pca963x_brightness:                    ## @pca963x_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	%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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movl	(%rdi), %ebx
	leal	3(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	movq	8(%rax), %rdx
	movl	%ecx, %r14d
	sarl	$2, %r14d
	addl	(%rdx), %r14d
	andl	$-4, %ecx
	subl	%ecx, %ebx
	addl	%ebx, %ebx
	movl	$3, %r13d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%r15d, %edx
	movl	%eax, %r15d
	cmpl	$128, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_6
## %bb.2:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	notl	%r13d
	andl	%r13d, %r15d
	movq	_PCA963X_LED_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	notl	%r13d
	andl	%r13d, %r15d
	movl	%r14d, %esi
	movl	%r15d, %edx
	jmp	LBB0_4
LBB0_6:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	_PCA963X_PWM_BASE@GOTPCREL(%rip), %rax
	movl	(%r12), %esi
	addl	(%rax), %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	notl	%r13d
	andl	%r13d, %r15d
	movq	_PCA963X_LED_PWM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	orl	%r15d, %edx
	movl	%r14d, %esi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCA963X_LED_ON,4,2             ## @PCA963X_LED_ON
	.comm	_PCA963X_PWM_BASE,4,2           ## @PCA963X_PWM_BASE
	.comm	_PCA963X_LED_PWM,4,2            ## @PCA963X_LED_PWM
	.no_dead_strip	_pca963x_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca963x_brightness
_pca963x_brightness:                    ; @pca963x_brightness
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	ldr	w10, [x0]
	add	w11, w10, #3
	cmp	w10, #0
	csel	w11, w11, w10, lt
	add	w19, w9, w11, asr #2
	and	w9, w11, #0x7ffffffc
	sub	w9, w10, w9
	lsl	w23, w9, #1
	mov	w9, #3
	lsl	w24, w9, w23
	ldr	w0, [x8]
	mov	x1, x19
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	cmp	w21, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bic	w8, w22, w24
Lloh0:
	adrp	x9, _PCA963X_LED_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCA963X_LED_ON@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bic	w2, w22, w24
	b	LBB0_7
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _PCA963X_PWM_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCA963X_PWM_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20]
	add	w1, w9, w8
	mov	x2, x21
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bic	w8, w22, w24
Lloh5:
	adrp	x9, _PCA963X_LED_PWM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCA963X_LED_PWM@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	lsl	w9, w9, w23
	orr	w2, w9, w8
LBB0_7:
	mov	x1, 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	_i2c_smbus_write_byte_data
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PCA963X_LED_ON,4,2             ; @PCA963X_LED_ON
	.comm	_PCA963X_PWM_BASE,4,2           ; @PCA963X_PWM_BASE
	.comm	_PCA963X_LED_PWM,4,2            ; @PCA963X_LED_PWM
	.no_dead_strip	_pca963x_brightness
.subsections_via_symbols
