	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function device_change_handler
_device_change_handler:                 ## @device_change_handler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_device_change_chip@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.1:
	movq	48(%rbx), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_tumbler_detect_headphone
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_tumbler_detect_lineout
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_DBG
	movl	%r15d, %eax
	orl	%r12d, %eax
	je	LBB0_11
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	leaq	24(%r14), %rsi
	movq	8(%r14), %rcx
	movl	36(%rbx), %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_check_mute
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.6:
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.7:
	leaq	16(%r14), %rsi
	movq	8(%r14), %rcx
	movl	32(%rbx), %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_check_mute
LBB0_8:
	cmpq	$0, 32(%r14)
	je	LBB0_10
## %bb.9:
	movl	$10, %edi
	callq	_msleep
LBB0_10:
	leaq	40(%r14), %rsi
	movq	8(%r14), %rcx
	movl	40(%rbx), %r8d
	jmp	LBB0_15
LBB0_11:
	leaq	40(%r14), %rsi
	movq	8(%r14), %rcx
	movl	40(%rbx), %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_check_mute
	cmpq	$0, 32(%r14)
	je	LBB0_13
## %bb.12:
	movl	$10, %edi
	callq	_msleep
LBB0_13:
	leaq	24(%r14), %rsi
	movq	8(%r14), %rcx
	movl	36(%rbx), %r8d
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_check_mute
	cmpq	$0, 16(%r14)
	je	LBB0_16
## %bb.14:
	leaq	16(%r14), %rsi
	movq	8(%r14), %rcx
	movl	32(%rbx), %r8d
LBB0_15:
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_check_mute
LBB0_16:
	cmpq	$0, 8(%r14)
	je	LBB0_18
## %bb.17:
	movl	16(%rbx), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	callq	_snd_ctl_notify
LBB0_18:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tumbler_set_master_volume      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_device_change_chip,8,3         ## @device_change_chip
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"headphone: %d, lineout: %d\n"

	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_PMAC_TUMBLER,8,3               ## @PMAC_TUMBLER
	.no_dead_strip	_device_change_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function device_change_handler
_device_change_handler:                 ; @device_change_handler
	.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
Lloh0:
	adrp	x8, _device_change_chip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _device_change_chip@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x19, [x20, #48]
	cmp	x19, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
LBB0_2:
	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_3:
	mov	x0, x20
	bl	_tumbler_detect_headphone
	mov	x22, x0
	mov	x0, x20
	bl	_tumbler_detect_lineout
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_DBG
	orr	w8, w21, w22
	cbz	w8, LBB0_12
; %bb.4:
	cbz	w22, LBB0_6
; %bb.5:
	add	x1, x19, #24
	ldr	x3, [x19, #8]
	ldr	w4, [x20, #36]
	mov	x0, x20
	mov	w2, #0
	bl	_check_mute
LBB0_6:
	cbz	w21, LBB0_9
; %bb.7:
	mov	x1, x19
	ldr	x8, [x1, #16]!
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x3, [x19, #8]
	ldr	w4, [x20, #32]
	mov	x0, x20
	mov	w2, #0
	bl	_check_mute
LBB0_9:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.10:
	mov	w0, #10
	bl	_msleep
LBB0_11:
	add	x1, x19, #40
	ldr	x3, [x19, #8]
	ldr	w4, [x20, #40]
	b	LBB0_16
LBB0_12:
	add	x1, x19, #40
	ldr	x3, [x19, #8]
	ldr	w4, [x20, #40]
	mov	x0, x20
	mov	w2, #0
	bl	_check_mute
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_14
; %bb.13:
	mov	w0, #10
	bl	_msleep
LBB0_14:
	add	x1, x19, #24
	ldr	x3, [x19, #8]
	ldr	w4, [x20, #36]
	mov	x0, x20
	mov	w2, #1
	bl	_check_mute
	mov	x1, x19
	ldr	x8, [x1, #16]!
	cbz	x8, LBB0_17
; %bb.15:
	ldr	x3, [x19, #8]
	ldr	w4, [x20, #32]
LBB0_16:
	mov	x0, x20
	mov	w2, #1
	bl	_check_mute
LBB0_17:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_19
; %bb.18:
	ldr	w0, [x20, #16]
Lloh5:
	adrp	x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x20, #24]
	bl	_snd_ctl_notify
LBB0_19:
	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	_tumbler_set_master_volume
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_device_change_chip,8,3         ; @device_change_chip
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"headphone: %d, lineout: %d\n"

	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_PMAC_TUMBLER,8,3               ; @PMAC_TUMBLER
	.no_dead_strip	_device_change_handler
.subsections_via_symbols
