	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function can_be_headset_mic
_can_be_headset_mic:                    ## @can_be_headset_mic
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_AUTO_PIN_MIC@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	cmpq	$0, 24(%rsi)
	jne	LBB0_7
## %bb.2:
	cmpq	$0, 16(%rsi)
	jne	LBB0_7
## %bb.3:
	movl	%edx, %r14d
	movl	8(%rsi), %esi
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_snd_hda_get_input_pin_attr
	movq	_INPUT_PIN_ATTR_DOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_7
## %bb.4:
	testl	%r14d, %r14d
	js	LBB0_6
## %bb.5:
	movl	%r15d, %edi
	callq	_get_defcfg_sequence
	cmpl	%r14d, %eax
	jne	LBB0_7
LBB0_6:
	movl	$1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTO_PIN_MIC,8,3               ## @AUTO_PIN_MIC
	.comm	_INPUT_PIN_ATTR_DOCK,4,2        ## @INPUT_PIN_ATTR_DOCK
	.no_dead_strip	_can_be_headset_mic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function can_be_headset_mic
_can_be_headset_mic:                    ; @can_be_headset_mic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _AUTO_PIN_MIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTO_PIN_MIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldr	x8, [x1, #24]
	cbnz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x1, #16]
	cbnz	x8, LBB0_7
; %bb.3:
	mov	x19, x2
	ldr	w1, [x1, #8]
	bl	_snd_hda_codec_get_pincfg
	mov	x20, x0
	bl	_snd_hda_get_input_pin_attr
Lloh3:
	adrp	x8, _INPUT_PIN_ATTR_DOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INPUT_PIN_ATTR_DOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_7
; %bb.4:
	tbnz	w19, #31, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_get_defcfg_sequence
	cmp	w0, w19
	b.ne	LBB0_7
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTO_PIN_MIC,8,3               ; @AUTO_PIN_MIC
	.comm	_INPUT_PIN_ATTR_DOCK,4,2        ; @INPUT_PIN_ATTR_DOCK
	.no_dead_strip	_can_be_headset_mic
.subsections_via_symbols
