	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca963x_blink
_pca963x_blink:                         ## @pca963x_blink
	.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, %r15
	movq	16(%rdi), %rax
	movl	(%rdi), %ecx
	leal	3(%rcx), %r14d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r14d
	movq	8(%rax), %rcx
	sarl	$2, %r14d
	addl	(%rcx), %r14d
	movl	4(%rax), %edi
	movq	_PCA963X_MODE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	movl	(%r15), %ebx
	leal	3(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	movl	4(%r15), %edx
	andl	$2147483644, %eax               ## imm = 0x7FFFFFFC
	subl	%eax, %ebx
	addl	%ebx, %ebx
	movl	$3, %r13d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	callq	_i2c_smbus_write_byte_data
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	movq	8(%rax), %rax
	movl	8(%rax), %esi
	movl	8(%r15), %edx
	callq	_i2c_smbus_write_byte_data
	movq	_PCA963X_MODE2_DMBLNK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r12d, %edx
	jne	LBB0_2
## %bb.1:
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	movq	_PCA963X_MODE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r12d, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_2:
	movq	16(%r15), %rdi
	callq	_mutex_lock
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	movl	%r14d, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %esi
	andl	%r13d, %esi
	movq	_PCA963X_LED_GRP_PWM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	cmpl	%edx, %esi
	je	LBB0_4
## %bb.3:
	movq	16(%r15), %rcx
	movl	4(%rcx), %edi
	notl	%r13d
	andl	%r13d, %eax
	orl	%eax, %edx
	movl	%r14d, %esi
	callq	_i2c_smbus_write_byte_data
LBB0_4:
	movq	16(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCA963X_MODE2,4,2              ## @PCA963X_MODE2
	.comm	_PCA963X_MODE2_DMBLNK,4,2       ## @PCA963X_MODE2_DMBLNK
	.comm	_PCA963X_LED_GRP_PWM,4,2        ## @PCA963X_LED_GRP_PWM
	.no_dead_strip	_pca963x_blink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca963x_blink
_pca963x_blink:                         ; @pca963x_blink
	.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
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	ldr	w10, [x0]
	add	w11, w10, #3
	cmp	w10, #0
	csel	w10, w11, w10, lt
	add	w20, w9, w10, asr #2
	ldr	w0, [x8, #4]
Lloh0:
	adrp	x24, _PCA963X_MODE2@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PCA963X_MODE2@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	ldp	w8, w2, [x19]
	negs	w9, w8
	and	w9, w9, #0x3
	and	w8, w8, #0x3
	csneg	w8, w8, w9, mi
	lsl	w23, w8, #1
	mov	w8, #3
	lsl	w22, w8, w23
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #4]
	bl	_i2c_smbus_write_byte_data
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #8]
	ldr	w2, [x19, #8]
	bl	_i2c_smbus_write_byte_data
Lloh2:
	adrp	x8, _PCA963X_MODE2_DMBLNK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCA963X_MODE2_DMBLNK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x19, #16]
	ldr	w0, [x9, #4]
	ldr	w1, [x24]
	orr	w2, w8, w21
	bl	_i2c_smbus_write_byte_data
LBB0_2:
	ldr	x0, [x19, #16]
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	mov	x1, x20
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, w22
Lloh5:
	adrp	x9, _PCA963X_LED_GRP_PWM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCA963X_LED_GRP_PWM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w9, w23
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #4]
	bic	w10, w0, w22
	orr	w2, w9, w10
	mov	x0, x8
	mov	x1, x20
	bl	_i2c_smbus_write_byte_data
LBB0_4:
	ldr	x0, [x19, #16]
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCA963X_MODE2,4,2              ; @PCA963X_MODE2
	.comm	_PCA963X_MODE2_DMBLNK,4,2       ; @PCA963X_MODE2_DMBLNK
	.comm	_PCA963X_LED_GRP_PWM,4,2        ; @PCA963X_LED_GRP_PWM
	.no_dead_strip	_pca963x_blink
.subsections_via_symbols
