	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vt1708_update_hp_work
_vt1708_update_hp_work:                 ## @vt1708_update_hp_work
	.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
	movq	24(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_VT1708@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	cmpl	$0, 24(%rbx)
	je	LBB0_6
## %bb.2:
	movq	%rdi, %r14
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	cmpl	$0, 8(%rbx)
	jne	LBB0_6
## %bb.4:
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$3969, %ecx                     ## imm = 0xF81
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_write
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_queue_delayed_work
	movl	$1, 8(%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_hp_detect_with_aa
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vt1708_stop_hp_work            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VT1708,8,3                     ## @VT1708
	.no_dead_strip	_vt1708_update_hp_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vt1708_update_hp_work
_vt1708_update_hp_work:                 ; @vt1708_update_hp_work
	.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
	ldr	x20, [x0, #24]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _VT1708@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VT1708@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_6
; %bb.4:
	mov	w0, #100
	bl	_msecs_to_jiffies
	str	w0, [x19, #16]
	mov	w21, #1
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	w3, #3969
	mov	w4, #0
	bl	_snd_hda_codec_write
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #0
	bl	_queue_delayed_work
	str	w21, [x20, #8]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_hp_detect_with_aa
	cbz	w0, LBB0_7
LBB0_6:
	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_7:
	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	_vt1708_stop_hp_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VT1708,8,3                     ; @VT1708
	.no_dead_strip	_vt1708_update_hp_work
.subsections_via_symbols
