	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_master_fader_leds
_show_master_fader_leds:                ## @show_master_fader_leds
	.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	%rdx, %r14
	callq	_to_i2c_client
	movl	%eax, %edi
	callq	_i2c_get_clientdata
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_LP5523_MAX_LEDS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_LP5523_REG_LED_CTRL_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	leaq	-44(%rbp), %rdx
	callq	_lp55xx_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LP5523_FADER_MAPPING_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movq	_LP5523_FADER_MAPPING_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	movl	%eax, -44(%rbp)
	cmpl	$4, %eax
	jge	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addb	$48, %al
	movb	%al, (%r14,%r15)
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_3
## %bb.8:
	movl	%r15d, %ebx
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	incl	%ebx
	movb	$10, (%r14,%rax)
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LP5523_MAX_LEDS,4,2            ## @LP5523_MAX_LEDS
	.comm	_LP5523_REG_LED_CTRL_BASE,8,3   ## @LP5523_REG_LED_CTRL_BASE
	.comm	_LP5523_FADER_MAPPING_MASK,4,2  ## @LP5523_FADER_MAPPING_MASK
	.comm	_LP5523_FADER_MAPPING_SHIFT,4,2 ## @LP5523_FADER_MAPPING_SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_show_master_fader_leds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_master_fader_leds
_show_master_fader_leds:                ; @show_master_fader_leds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	bl	_to_i2c_client
	bl	_i2c_get_clientdata
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x22, _LP5523_MAX_LEDS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LP5523_MAX_LEDS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x23, _LP5523_REG_LED_CTRL_BASE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _LP5523_REG_LED_CTRL_BASE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _LP5523_FADER_MAPPING_MASK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _LP5523_FADER_MAPPING_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x26, _LP5523_FADER_MAPPING_SHIFT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _LP5523_FADER_MAPPING_SHIFT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x24, x8
	add	x2, sp, #12
	mov	x0, x19
	bl	_lp55xx_read
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x25]
	and	w8, w9, w8
	ldr	w9, [x26]
	asr	w8, w8, w9
	str	w8, [sp, #12]
	cmp	w8, #4
	b.ge	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w8, #48
	add	x8, x24, #1
	strb	w9, [x20, x24]
	ldrsw	x9, [x22]
	mov	x24, x8
	cmp	x8, x9
	b.lt	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	add	w21, w8, #1
	mov	w9, #10
	strb	w9, [x20, w8, uxtw]
	b	LBB0_9
LBB0_7:
	mov	x21, x0
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LP5523_MAX_LEDS,4,2            ; @LP5523_MAX_LEDS
	.comm	_LP5523_REG_LED_CTRL_BASE,8,3   ; @LP5523_REG_LED_CTRL_BASE
	.comm	_LP5523_FADER_MAPPING_MASK,4,2  ; @LP5523_FADER_MAPPING_MASK
	.comm	_LP5523_FADER_MAPPING_SHIFT,4,2 ; @LP5523_FADER_MAPPING_SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_show_master_fader_leds
.subsections_via_symbols
