	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca9532_set_brightness
_pca9532_set_brightness:                ## @pca9532_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_ldev_to_led
	movq	%rax, %r14
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_PCA9532_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_PCA9532_ON@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_7:
	movq	_PCA9532_PWM0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	8(%r14), %edi
	xorl	%esi, %esi
	callq	_pca9532_setpwm
LBB0_9:
	movq	%r14, %rdi
	callq	_pca9532_setled
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_PCA9532_PWM0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	8(%r14), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_pca9532_calcpwm
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	(%r14), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_PCA9532_OFF,8,3                ## @PCA9532_OFF
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_PCA9532_ON,8,3                 ## @PCA9532_ON
	.comm	_PCA9532_PWM0,8,3               ## @PCA9532_PWM0
	.no_dead_strip	_pca9532_set_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca9532_set_brightness
_pca9532_set_brightness:                ; @pca9532_set_brightness
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_ldev_to_led
	mov	x19, x0
Lloh0:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _PCA9532_PWM0@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PCA9532_PWM0@GOTPAGEOFF]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _PCA9532_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCA9532_OFF@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.3:
Lloh10:
	adrp	x8, _PCA9532_ON@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCA9532_ON@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_5:
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_pca9532_setpwm
LBB0_7:
	mov	x0, x19
	bl	_pca9532_setled
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x21]
	str	x8, [x19]
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #0
	mov	x3, x20
	bl	_pca9532_calcpwm
	cbnz	w0, LBB0_8
; %bb.10:
	ldr	x8, [x19]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_PCA9532_OFF,8,3                ; @PCA9532_OFF
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_PCA9532_ON,8,3                 ; @PCA9532_ON
	.comm	_PCA9532_PWM0,8,3               ; @PCA9532_PWM0
	.no_dead_strip	_pca9532_set_brightness
.subsections_via_symbols
