	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jack_update_power
_jack_update_power:                     ## @jack_update_power
	.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	8(%rdi), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	8(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_snd_hda_jack_detect
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stac_toggle_power_map          ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:
	xorl	%ebx, %ebx
	movq	_STAC_PWR_EVENT@GOTPCREL(%rip), %r13
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_snd_hda_jack_detect
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_stac_toggle_power_map
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_snd_hda_jack_tbl_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_HDA_GEN_LAST_EVENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_10
	jmp	LBB0_9
LBB0_11:
	movl	(%r14), %esi
	movq	_AC_VERB_IDT_SET_POWER_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%r15), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hda_codec_write            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STAC_PWR_EVENT,8,3             ## @STAC_PWR_EVENT
	.comm	_HDA_GEN_LAST_EVENT,8,3         ## @HDA_GEN_LAST_EVENT
	.comm	_AC_VERB_IDT_SET_POWER_MAP,4,2  ## @AC_VERB_IDT_SET_POWER_MAP
	.no_dead_strip	_jack_update_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jack_update_power
_jack_update_power:                     ; @jack_update_power
	.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
	ldr	x21, [x0, #8]
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	cbz	x1, LBB0_5
; %bb.2:
	ldr	x20, [x1, #8]
	cbz	x20, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_jack_detect
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	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
	b	_stac_toggle_power_map
LBB0_4:
	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
LBB0_5:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.6:
	mov	x22, #0
Lloh0:
	adrp	x23, _STAC_PWR_EVENT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STAC_PWR_EVENT@GOTPAGEOFF]
Lloh2:
	adrp	x24, _HDA_GEN_LAST_EVENT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HDA_GEN_LAST_EVENT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x20, [x8, x22, lsl #3]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_jack_tbl_get
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x23]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.gt	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_jack_detect
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_stac_toggle_power_map
	b	LBB0_7
LBB0_12:
	ldr	w1, [x19]
Lloh4:
	adrp	x8, _AC_VERB_IDT_SET_POWER_MAP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AC_VERB_IDT_SET_POWER_MAP@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	ldr	w4, [x21, #4]
	mov	x0, x19
	mov	w2, #0
	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
	b	_snd_hda_codec_write
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STAC_PWR_EVENT,8,3             ; @STAC_PWR_EVENT
	.comm	_HDA_GEN_LAST_EVENT,8,3         ; @HDA_GEN_LAST_EVENT
	.comm	_AC_VERB_IDT_SET_POWER_MAP,4,2  ; @AC_VERB_IDT_SET_POWER_MAP
	.no_dead_strip	_jack_update_power
.subsections_via_symbols
