	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_status_blink_set
_wm831x_status_blink_set:               ## @wm831x_status_blink_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_to_wm831x_status
	movq	%rax, %r12
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, (%r15)
	jne	LBB0_3
## %bb.2:
	movq	$250, (%rbx)
	movq	$250, (%r15)
LBB0_3:
	leaq	12(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rcx
	cmpq	$249, %rcx
	jg	LBB0_7
## %bb.4:
	leaq	-62(%rcx), %rax
	cmpq	$2, %rax
	jae	LBB0_5
## %bb.10:
	movl	$3, %eax
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	cmpq	$1000, %rcx                     ## imm = 0x3E8
	je	LBB0_11
## %bb.8:
	cmpq	$250, %rcx
	jne	LBB0_20
## %bb.9:
	movl	$1, %eax
	jmp	LBB0_11
LBB0_5:
	cmpq	$125, %rcx
	jne	LBB0_20
## %bb.6:
	movl	$2, %eax
LBB0_11:
	movl	%eax, (%r12)
LBB0_12:
	movq	(%r15), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_13
## %bb.14:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_15
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_15:
	leaq	-1(%rax), %rcx
	cmpq	$8, %rcx
	jae	LBB0_16
## %bb.18:
	movl	$141, %edx
	btl	%ecx, %edx
	jb	LBB0_19
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_17
LBB0_21:
	negl	%ebx
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_19:
	leaq	l_switch.table.wm831x_status_blink_set(%rip), %rcx
	movl	-4(%rcx,%rax,4), %eax
	movl	%eax, 4(%r12)
LBB0_17:
	xorl	%ebx, %ebx
	movl	$1, %eax
LBB0_22:
	movl	%eax, 8(%r12)
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_schedule_work
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_21
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wm831x_status_blink_set
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.wm831x_status_blink_set
l_switch.table.wm831x_status_blink_set:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_status_blink_set
_wm831x_status_blink_set:               ; @wm831x_status_blink_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	x21, x2
	mov	x22, x1
	bl	_to_wm831x_status
	mov	x19, x0
	ldr	x8, [x22]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	w8, #250
	str	x8, [x22]
	str	x8, [x21]
LBB0_3:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	cmp	x8, #249
	b.gt	LBB0_6
; %bb.4:
	sub	x9, x8, #62
	cmp	x9, #2
	b.hs	LBB0_9
; %bb.5:
	mov	w9, #3
	b	LBB0_12
LBB0_6:
	cmp	x8, #1000
	b.eq	LBB0_11
; %bb.7:
	cmp	x8, #250
	b.ne	LBB0_21
; %bb.8:
	mov	w9, #1
	b	LBB0_12
LBB0_9:
	cmp	x8, #125
	b.ne	LBB0_21
; %bb.10:
	mov	w9, #2
	b	LBB0_12
LBB0_11:
	mov	w9, #0
LBB0_12:
	str	w9, [x19]
LBB0_13:
	ldr	x9, [x21]
	udiv	x8, x9, x8
	sub	x8, x8, #1
	cmp	x8, #8
	b.hs	LBB0_15
; %bb.14:
	mov	w9, #141
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_18
LBB0_15:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cbz	w9, LBB0_17
LBB0_16:
	mov	w8, #0
	neg	w21, w9
	b	LBB0_20
LBB0_17:
	mov	w21, #0
	b	LBB0_19
LBB0_18:
	mov	w21, #0
Lloh3:
	adrp	x9, l_switch.table.wm831x_status_blink_set@PAGE
Lloh4:
	add	x9, x9, l_switch.table.wm831x_status_blink_set@PAGEOFF
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x19, #4]
LBB0_19:
	mov	w8, #1
LBB0_20:
	str	w8, [x19, #8]
	add	x0, x19, #16
	bl	_schedule_work
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	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_21:
Lloh5:
	adrp	x9, _EINVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cbnz	w9, LBB0_16
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wm831x_status_blink_set
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.wm831x_status_blink_set
l_switch.table.wm831x_status_blink_set:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	3                               ; 0x3

.subsections_via_symbols
