	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_status_set
_wm831x_status_set:                     ## @wm831x_status_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_WM831X_LED_SRC_MASK@GOTPCREL(%rip), %rax
	movq	_WM831X_LED_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WM831X_LED_DUTY_CYC_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WM831X_LED_DUR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	leaq	36(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	4(%rbx), %eax
	movq	_WM831X_LED_SRC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	cmpq	$0, 40(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_WM831X_LED_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$2, %edx
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, (%rbx)
	movl	8(%rbx), %eax
	movq	_WM831X_LED_DUR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	orl	12(%rbx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	16(%rbx), %rcx
	movq	_LED_OFF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.3:
	movq	_WM831X_LED_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
LBB0_4:
	movl	%eax, (%rbx)
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	32(%rbx), %edi
	movl	(%rbx), %edx
	movl	28(%rbx), %esi
	callq	_wm831x_reg_write
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WM831X_LED_SRC_MASK,4,2        ## @WM831X_LED_SRC_MASK
	.comm	_WM831X_LED_MODE_MASK,4,2       ## @WM831X_LED_MODE_MASK
	.comm	_WM831X_LED_DUTY_CYC_MASK,4,2   ## @WM831X_LED_DUTY_CYC_MASK
	.comm	_WM831X_LED_DUR_MASK,4,2        ## @WM831X_LED_DUR_MASK
	.comm	_WM831X_LED_SRC_SHIFT,4,2       ## @WM831X_LED_SRC_SHIFT
	.comm	_WM831X_LED_MODE_SHIFT,4,2      ## @WM831X_LED_MODE_SHIFT
	.comm	_WM831X_LED_DUR_SHIFT,4,2       ## @WM831X_LED_DUR_SHIFT
	.comm	_LED_OFF,8,3                    ## @LED_OFF
	.no_dead_strip	_wm831x_status_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_status_set
_wm831x_status_set:                     ; @wm831x_status_set
	.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, x0
	add	x19, x0, #24
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _WM831X_LED_SRC_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM831X_LED_SRC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WM831X_LED_MODE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WM831X_LED_MODE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _WM831X_LED_DUTY_CYC_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WM831X_LED_DUTY_CYC_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _WM831X_LED_DUR_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WM831X_LED_DUR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	add	x21, x20, #36
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh12:
	adrp	x8, _WM831X_LED_SRC_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM831X_LED_SRC_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldp	w10, w9, [x20]
	lsl	w8, w9, w8
	orr	w8, w10, w8
	str	w8, [x20]
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_2
; %bb.1:
Lloh15:
	adrp	x9, _WM831X_LED_MODE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WM831X_LED_MODE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mov	w10, #2
	lsl	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x20]
Lloh18:
	adrp	x9, _WM831X_LED_DUR_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WM831X_LED_DUR_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldp	w10, w11, [x20, #8]
	lsl	w9, w10, w9
	orr	w8, w9, w8
	orr	w8, w8, w11
	b	LBB0_4
LBB0_2:
	ldr	x9, [x20, #16]
Lloh21:
	adrp	x10, _LED_OFF@GOTPAGE
Lloh22:
	ldr	x10, [x10, _LED_OFF@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.3:
Lloh24:
	adrp	x9, _WM831X_LED_MODE_SHIFT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WM831X_LED_MODE_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w8, w9, w8
LBB0_4:
	str	w8, [x20]
LBB0_5:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldp	w1, w0, [x20, #28]
	ldr	w2, [x20]
	bl	_wm831x_reg_write
	mov	x0, x19
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_WM831X_LED_SRC_MASK,4,2        ; @WM831X_LED_SRC_MASK
	.comm	_WM831X_LED_MODE_MASK,4,2       ; @WM831X_LED_MODE_MASK
	.comm	_WM831X_LED_DUTY_CYC_MASK,4,2   ; @WM831X_LED_DUTY_CYC_MASK
	.comm	_WM831X_LED_DUR_MASK,4,2        ; @WM831X_LED_DUR_MASK
	.comm	_WM831X_LED_SRC_SHIFT,4,2       ; @WM831X_LED_SRC_SHIFT
	.comm	_WM831X_LED_MODE_SHIFT,4,2      ; @WM831X_LED_MODE_SHIFT
	.comm	_WM831X_LED_DUR_SHIFT,4,2       ; @WM831X_LED_DUR_SHIFT
	.comm	_LED_OFF,8,3                    ; @LED_OFF
	.no_dead_strip	_wm831x_status_set
.subsections_via_symbols
