	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pmac_burgundy_update_automute
_snd_pmac_burgundy_update_automute:     ## @snd_pmac_burgundy_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, 32(%rdi)
	je	LBB0_12
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_machine_is_compatible
	movl	%eax, %ebx
	movq	_MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_pmac_burgundy_rcb
	movl	%eax, %r15d
	movq	_BURGUNDY_OUTPUT_LEFT@GOTPCREL(%rip), %rcx
	movq	_BURGUNDY_OUTPUT_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%ebx, %ebx
	movq	_BURGUNDY_HP_LEFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmovel	%ebx, %r13d
	movq	_BURGUNDY_OUTPUT_INTERN@GOTPCREL(%rip), %rcx
	cmovneq	_BURGUNDY_HP_RIGHT@GOTPCREL(%rip), %rcx
	orl	%eax, %r13d
	orl	(%rcx), %r13d
	notl	%r13d
	andl	%r15d, %r13d
	movq	%r12, %rdi
	callq	_snd_pmac_burgundy_detect_headphone
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:
	movq	_BURGUNDY_HP_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BURGUNDY_HP_LEFT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	movq	_BURGUNDY_OUTPUT_INTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_8
LBB0_6:
	movq	_BURGUNDY_OUTPUT_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BURGUNDY_OUTPUT_LEFT@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %edx
LBB0_8:
	orl	%r13d, %edx
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	cmpl	%r15d, %edx
	je	LBB0_12
LBB0_10:
	movq	_MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_pmac_burgundy_wcb
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movl	8(%r12), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	24(%r12), %rdx
	callq	_snd_ctl_notify
	movl	8(%r12), %edi
	movl	(%rbx), %esi
	movq	16(%r12), %rdx
	callq	_snd_ctl_notify
	movl	8(%r12), %edi
	movl	(%rbx), %esi
	movq	(%r12), %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ctl_notify                 ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iMac"

	.comm	_MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES,4,2 ## @MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES
	.comm	_BURGUNDY_OUTPUT_LEFT,4,2       ## @BURGUNDY_OUTPUT_LEFT
	.comm	_BURGUNDY_OUTPUT_RIGHT,4,2      ## @BURGUNDY_OUTPUT_RIGHT
	.comm	_BURGUNDY_HP_LEFT,4,2           ## @BURGUNDY_HP_LEFT
	.comm	_BURGUNDY_HP_RIGHT,4,2          ## @BURGUNDY_HP_RIGHT
	.comm	_BURGUNDY_OUTPUT_INTERN,4,2     ## @BURGUNDY_OUTPUT_INTERN
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.no_dead_strip	_snd_pmac_burgundy_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_burgundy_update_automute
_snd_pmac_burgundy_update_automute:     ; @snd_pmac_burgundy_update_automute
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_machine_is_compatible
	mov	x22, x0
Lloh2:
	adrp	x8, _MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_pmac_burgundy_rcb
	mov	x21, x0
Lloh5:
	adrp	x25, _BURGUNDY_OUTPUT_LEFT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _BURGUNDY_OUTPUT_LEFT@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh7:
	adrp	x26, _BURGUNDY_OUTPUT_RIGHT@GOTPAGE
Lloh8:
	ldr	x26, [x26, _BURGUNDY_OUTPUT_RIGHT@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w9, w8
Lloh9:
	adrp	x27, _BURGUNDY_HP_LEFT@GOTPAGE
Lloh10:
	ldr	x27, [x27, _BURGUNDY_HP_LEFT@GOTPAGEOFF]
	ldr	w9, [x27]
	cmp	w22, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh11:
	adrp	x23, _BURGUNDY_OUTPUT_INTERN@GOTPAGE
Lloh12:
	ldr	x23, [x23, _BURGUNDY_OUTPUT_INTERN@GOTPAGEOFF]
Lloh13:
	adrp	x28, _BURGUNDY_HP_RIGHT@GOTPAGE
Lloh14:
	ldr	x28, [x28, _BURGUNDY_HP_RIGHT@GOTPAGEOFF]
	csel	x9, x23, x28, eq
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w24, w0, w8
	mov	x0, x19
	bl	_snd_pmac_burgundy_detect_headphone
	cbz	x0, LBB0_4
; %bb.2:
	cbz	w22, LBB0_5
; %bb.3:
	ldr	w8, [x27]
	ldr	w9, [x28]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x23]
	cmp	w22, #0
	csel	w8, w9, w8, eq
	orr	w2, w8, w24
	cbnz	w20, LBB0_7
	b	LBB0_8
LBB0_5:
	ldr	w8, [x25]
	ldr	w9, [x26]
LBB0_6:
	orr	w8, w9, w8
	orr	w2, w8, w24
	cbz	w20, LBB0_8
LBB0_7:
	cmp	w2, w21
	b.eq	LBB0_10
LBB0_8:
Lloh15:
	adrp	x8, _MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_pmac_burgundy_wcb
	cbz	w20, LBB0_10
; %bb.9:
	ldr	w0, [x19, #8]
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, #24]
	bl	_snd_ctl_notify
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	ldr	x2, [x19, #16]
	bl	_snd_ctl_notify
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	ldr	x2, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_snd_ctl_notify
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iMac"

	.comm	_MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES,4,2 ; @MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES
	.comm	_BURGUNDY_OUTPUT_LEFT,4,2       ; @BURGUNDY_OUTPUT_LEFT
	.comm	_BURGUNDY_OUTPUT_RIGHT,4,2      ; @BURGUNDY_OUTPUT_RIGHT
	.comm	_BURGUNDY_HP_LEFT,4,2           ; @BURGUNDY_HP_LEFT
	.comm	_BURGUNDY_HP_RIGHT,4,2          ; @BURGUNDY_HP_RIGHT
	.comm	_BURGUNDY_OUTPUT_INTERN,4,2     ; @BURGUNDY_OUTPUT_INTERN
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.no_dead_strip	_snd_pmac_burgundy_update_automute
.subsections_via_symbols
