	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function has_builtin_speaker
_has_builtin_speaker:                   ## @has_builtin_speaker
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rdx
	movq	_AUTO_PIN_SPEAKER_OUT@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	setne	%dil
	sete	%dl
	movl	8(%rax,%rdi,4), %r15d
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.1:
	movb	%dl, %cl
	movq	16(%rax,%rcx,8), %r12
	xorl	%ebx, %ebx
	movq	_INPUT_PIN_ATTR_INT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %edi
	callq	_snd_hda_get_input_pin_attr
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTO_PIN_SPEAKER_OUT,8,3       ## @AUTO_PIN_SPEAKER_OUT
	.comm	_INPUT_PIN_ATTR_INT,8,3         ## @INPUT_PIN_ATTR_INT
	.no_dead_strip	_has_builtin_speaker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function has_builtin_speaker
_has_builtin_speaker:                   ; @has_builtin_speaker
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AUTO_PIN_SPEAKER_OUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTO_PIN_SPEAKER_OUT@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh2:
	ldr	x9, [x9]
	mov	w11, #16
	mov	w12, #24
	cmp	x10, x9
	csel	x9, x12, x11, eq
	mov	w10, #12
	mov	w11, #8
	csel	x10, x11, x10, eq
	ldr	w20, [x8, x10]
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x21, [x8, x9]
Lloh3:
	adrp	x22, _INPUT_PIN_ATTR_INT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _INPUT_PIN_ATTR_INT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_hda_codec_get_pincfg
	bl	_snd_hda_get_input_pin_attr
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #4
	subs	x20, x20, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTO_PIN_SPEAKER_OUT,8,3       ; @AUTO_PIN_SPEAKER_OUT
	.comm	_INPUT_PIN_ATTR_INT,8,3         ; @INPUT_PIN_ATTR_INT
	.no_dead_strip	_has_builtin_speaker
.subsections_via_symbols
