	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pmac_awacs_update_automute
_snd_pmac_awacs_update_automute:        ## @snd_pmac_awacs_update_automute
	.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
	cmpq	$0, 48(%rdi)
	je	LBB0_19
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_MASK_HDMUTE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_MASK_SPKMUTE@GOTPCREL(%rip), %rcx
	orl	4(%rax), %ebx
	movl	(%rcx), %eax
	movq	_imac1@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.2:
	notl	%eax
	andl	%eax, %ebx
	movq	_MASK_PAROUT1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_imac2@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	_MASK_PAROUT1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_6
LBB0_4:
	orl	%eax, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_snd_pmac_awacs_detect_headphone
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r13), %eax
	jmp	LBB0_14
LBB0_8:
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.9:
	movq	_MASK_PAROUT1@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	notl	%eax
	andl	%eax, %ebx
	testl	%r15d, %r15d
	je	LBB0_18
LBB0_16:
	movq	(%r14), %rax
	cmpl	4(%rax), %ebx
	jne	LBB0_17
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_snd_pmac_awacs_write_reg
	movl	16(%r14), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	32(%r14), %rdx
	callq	_snd_ctl_notify
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	movq	24(%r14), %rdx
	callq	_snd_ctl_notify
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	movq	8(%r14), %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ctl_notify                 ## TAILCALL
LBB0_10:
	movq	_imac2@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_MASK_PAROUT1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	testl	%r15d, %r15d
	jne	LBB0_16
LBB0_18:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pmac_awacs_write_reg       ## TAILCALL
LBB0_12:
	movq	_MASK_SPKMUTE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MASK_HDMUTE,4,2                ## @MASK_HDMUTE
	.comm	_MASK_SPKMUTE,4,2               ## @MASK_SPKMUTE
	.comm	_imac1,8,3                      ## @imac1
	.comm	_MASK_PAROUT1,4,2               ## @MASK_PAROUT1
	.comm	_imac2,8,3                      ## @imac2
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_AMP_CH_HD,4,2                  ## @AMP_CH_HD
	.comm	_AMP_CH_SPK,4,2                 ## @AMP_CH_SPK
	.no_dead_strip	_snd_pmac_awacs_update_automute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pmac_awacs_update_automute
_snd_pmac_awacs_update_automute:        ; @snd_pmac_awacs_update_automute
	.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	x8, [x0, #48]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8, #4]
Lloh0:
	adrp	x22, _MASK_HDMUTE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MASK_HDMUTE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _MASK_SPKMUTE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MASK_SPKMUTE@GOTPAGEOFF]
	ldr	w10, [x22]
	ldr	w8, [x21]
	orr	w9, w10, w9
Lloh4:
	adrp	x24, _imac1@GOTPAGE
Lloh5:
	ldr	x24, [x24, _imac1@GOTPAGEOFF]
	ldr	x10, [x24]
	cbz	x10, LBB0_4
; %bb.2:
	bic	w8, w9, w8
Lloh6:
	adrp	x9, _MASK_PAROUT1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MASK_PAROUT1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
LBB0_3:
	orr	w23, w9, w8
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x10, _imac2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _imac2@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cbz	x10, LBB0_3
; %bb.5:
Lloh12:
	adrp	x10, _MASK_PAROUT1@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MASK_PAROUT1@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w8, w10, w8
	bic	w23, w9, w8
LBB0_6:
	mov	x0, x19
	bl	_snd_pmac_awacs_detect_headphone
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x22]
	bic	w2, w23, w8
	cbnz	w20, LBB0_10
	b	LBB0_15
LBB0_8:
	ldr	x8, [x24]
	cbz	x8, LBB0_13
; %bb.9:
Lloh15:
	adrp	x8, _MASK_PAROUT1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MASK_PAROUT1@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w2, w23, w8
	cbz	w20, LBB0_15
LBB0_10:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cmp	w2, w8
	b.ne	LBB0_12
LBB0_11:
	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_12:
	mov	x0, x19
	mov	w1, #1
	bl	_snd_pmac_awacs_write_reg
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x20, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh19:
	ldr	x20, [x20, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x2, [x19, #32]
	bl	_snd_ctl_notify
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	ldr	x2, [x19, #24]
	bl	_snd_ctl_notify
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	ldr	x2, [x19, #8]
	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_ctl_notify
LBB0_13:
Lloh20:
	adrp	x8, _imac2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _imac2@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
Lloh23:
	adrp	x8, _MASK_PAROUT1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MASK_PAROUT1@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w2, w8, w23
	cbnz	w20, LBB0_10
LBB0_15:
	mov	x0, x19
	mov	w1, #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	_snd_pmac_awacs_write_reg
LBB0_16:
	ldr	w8, [x21]
	bic	w2, w23, w8
	cbnz	w20, LBB0_10
	b	LBB0_15
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MASK_HDMUTE,4,2                ; @MASK_HDMUTE
	.comm	_MASK_SPKMUTE,4,2               ; @MASK_SPKMUTE
	.comm	_imac1,8,3                      ; @imac1
	.comm	_MASK_PAROUT1,4,2               ; @MASK_PAROUT1
	.comm	_imac2,8,3                      ; @imac2
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_AMP_CH_HD,4,2                  ; @AMP_CH_HD
	.comm	_AMP_CH_SPK,4,2                 ; @AMP_CH_SPK
	.no_dead_strip	_snd_pmac_awacs_update_automute
.subsections_via_symbols
