	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca9532_setled
_pca9532_setled:                        ## @pca9532_setled
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movl	(%rax), %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	callq	_mutex_lock
	movl	4(%r14), %esi
	movl	%ebx, %edi
	callq	_LED_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movl	4(%r14), %edi
	callq	_LED_NUM
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %ecx
	movl	$3, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	notb	%r12b
	andb	%r13b, %r12b
	movl	(%r14), %ebx
	movl	4(%r14), %edi
	callq	_LED_NUM
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orb	%r12b, %bl
	movl	4(%r14), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_LED_REG
	movsbl	%bl, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pca9532_setled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca9532_setled
_pca9532_setled:                        ; @pca9532_setled
	.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	x20, [x0, #8]
	mov	x0, x20
	bl	_i2c_get_clientdata
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	w22, [x8]
	bl	_mutex_lock
	ldr	w1, [x19, #4]
	mov	x0, x22
	bl	_LED_REG
	mov	x1, x0
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	ldr	w0, [x19, #4]
	bl	_LED_NUM
	lsl	w8, w0, #1
	mov	w9, #3
	lsl	w8, w9, w8
	bic	w23, w23, w8
	ldp	w24, w0, [x19]
	bl	_LED_NUM
	lsl	w8, w0, #1
	lsl	w8, w24, w8
	orr	w23, w23, w8
	ldr	w1, [x19, #4]
	mov	x0, x22
	bl	_LED_REG
	mov	x1, x0
	sxtb	w2, w23
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pca9532_setled
.subsections_via_symbols
