	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function via_set_jack_unsol_events
_via_set_jack_unsol_events:             ## @via_set_jack_unsol_events
	.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	%rdi, %r14
	movq	(%rdi), %r15
	movq	_via_hp_automute@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	24(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_via_line_automute@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_2:
	cmpl	$0, 8(%r15)
	jle	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	movq	_via_jack_powerstate_event@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_snd_hda_jack_tbl_get
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_is_jack_detectable
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_VIA_JACK_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_snd_hda_jack_detect_enable_callback
	jmp	LBB0_8
LBB0_9:
	cmpl	$0, 12(%r15)
	jle	LBB0_16
## %bb.10:
	xorl	%ebx, %ebx
	movq	_via_jack_powerstate_event@GOTPCREL(%rip), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	12(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_snd_hda_jack_tbl_get
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_is_jack_detectable
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_VIA_JACK_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_snd_hda_jack_detect_enable_callback
	jmp	LBB0_15
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_via_hp_automute,4,2            ## @via_hp_automute
	.comm	_via_line_automute,4,2          ## @via_line_automute
	.comm	_VIA_JACK_EVENT,4,2             ## @VIA_JACK_EVENT
	.comm	_via_jack_powerstate_event,4,2  ## @via_jack_powerstate_event
	.no_dead_strip	_via_set_jack_unsol_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function via_set_jack_unsol_events
_via_set_jack_unsol_events:             ; @via_set_jack_unsol_events
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _via_hp_automute@GOTPAGE
Lloh1:
	ldr	x8, [x8, _via_hp_automute@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _via_line_automute@GOTPAGE
Lloh4:
	ldr	x8, [x8, _via_line_automute@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_2:
	ldr	w8, [x21, #8]
Lloh6:
	adrp	x22, _VIA_JACK_EVENT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _VIA_JACK_EVENT@GOTPAGEOFF]
Lloh8:
	adrp	x23, _via_jack_powerstate_event@GOTPAGE
Lloh9:
	ldr	x23, [x23, _via_jack_powerstate_event@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x24, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21, #8]
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	x20, [x8, x24, lsl #3]
	cbz	x20, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_jack_tbl_get
	cbnz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_is_jack_detectable
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_jack_detect_enable_callback
	b	LBB0_4
LBB0_9:
	ldr	w8, [x21, #12]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.10:
	mov	x24, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21, #12]
	cmp	x24, x8
	b.ge	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	x20, [x8, x24, lsl #3]
	cbz	x20, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_jack_tbl_get
	cbnz	w0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_is_jack_detectable
	cbz	x0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_jack_detect_enable_callback
	b	LBB0_11
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_via_hp_automute,4,2            ; @via_hp_automute
	.comm	_via_line_automute,4,2          ; @via_line_automute
	.comm	_VIA_JACK_EVENT,4,2             ; @VIA_JACK_EVENT
	.comm	_via_jack_powerstate_event,4,2  ; @via_jack_powerstate_event
	.no_dead_strip	_via_set_jack_unsol_events
.subsections_via_symbols
