	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alc_fixup_headset_mode
_alc_fixup_headset_mode:                ## @alc_fixup_headset_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %edx
	je	LBB0_5
## %bb.1:
	movq	(%rdi), %rax
	cmpl	$130, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_4
## %bb.3:
	movq	_HDA_PINCFG_HEADSET_MIC@GOTPCREL(%rip), %rcx
	movq	_HDA_PINCFG_HEADPHONE_MIC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, (%rax)
LBB0_4:
	popq	%rbp
	retq
LBB0_5:
	popq	%rbp
	jmp	_alc_probe_headset_mode         ## TAILCALL
LBB0_6:
	movl	$0, 4(%rax)
	popq	%rbp
	jmp	_alc_update_headset_mode        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_PINCFG_HEADSET_MIC,4,2     ## @HDA_PINCFG_HEADSET_MIC
	.comm	_HDA_PINCFG_HEADPHONE_MIC,4,2   ## @HDA_PINCFG_HEADPHONE_MIC
	.no_dead_strip	_alc_fixup_headset_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alc_fixup_headset_mode
_alc_fixup_headset_mode:                ; @alc_fixup_headset_mode
	.cfi_startproc
; %bb.0:
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x0]
	cmp	w2, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w2, #129
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _HDA_PINCFG_HEADSET_MIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDA_PINCFG_HEADSET_MIC@GOTPAGEOFF]
Lloh2:
	adrp	x10, _HDA_PINCFG_HEADPHONE_MIC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HDA_PINCFG_HEADPHONE_MIC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x8]
	orr	w9, w9, w10
	str	w9, [x8]
LBB0_4:
	ret
LBB0_5:
	b	_alc_probe_headset_mode
LBB0_6:
	str	wzr, [x8, #4]
	b	_alc_update_headset_mode
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_PINCFG_HEADSET_MIC,4,2     ; @HDA_PINCFG_HEADSET_MIC
	.comm	_HDA_PINCFG_HEADPHONE_MIC,4,2   ; @HDA_PINCFG_HEADPHONE_MIC
	.no_dead_strip	_alc_fixup_headset_mode
.subsections_via_symbols
