	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_get_jack_location      ## -- Begin function snd_hda_get_jack_location
	.p2align	4, 0x90
_snd_hda_get_jack_location:             ## @snd_hda_get_jack_location
	.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
	movl	%edi, %r12d
	movq	_AC_DEFCFG_LOCATION@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_AC_DEFCFG_LOCATION_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movl	%r12d, %eax
	andl	$15, %eax
	cmpl	$7, %eax
	jae	LBB0_1
## %bb.5:
	movl	%eax, %eax
	leaq	_snd_hda_get_jack_location.bases(%rip), %rcx
	leaq	(%rcx,%rax,8), %r13
LBB0_6:
	movq	(%r13), %r14
	jmp	LBB0_7
LBB0_1:
	leaq	_snd_hda_get_jack_location.specials_idx(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	leaq	L_.str.14(%rip), %r14
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	leaq	_snd_hda_get_jack_location.specials(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%r15), %eax
	cmpl	%eax, %r12d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @snd_hda_get_jack_location.bases
_snd_hda_get_jack_location.bases:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.6

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"N/A"

L_.str.1:                               ## @.str.1
	.asciz	"Rear"

L_.str.2:                               ## @.str.2
	.asciz	"Front"

L_.str.3:                               ## @.str.3
	.asciz	"Left"

L_.str.4:                               ## @.str.4
	.asciz	"Right"

L_.str.5:                               ## @.str.5
	.asciz	"Top"

L_.str.6:                               ## @.str.6
	.asciz	"Bottom"

	.section	__DATA,__data
_snd_hda_get_jack_location.specials_idx: ## @snd_hda_get_jack_location.specials_idx
	.ascii	"\007\b\027\030\03178"

	.section	__DATA,__const
	.p2align	4                               ## @snd_hda_get_jack_location.specials
_snd_hda_get_jack_location.specials:
	.quad	L_.str.7
	.quad	L_.str.8
	.quad	L_.str.9
	.quad	L_.str.10
	.quad	L_.str.11
	.quad	L_.str.12
	.quad	L_.str.13

	.section	__TEXT,__cstring,cstring_literals
L_.str.7:                               ## @.str.7
	.asciz	"Rear Panel"

L_.str.8:                               ## @.str.8
	.asciz	"Drive Bar"

L_.str.9:                               ## @.str.9
	.asciz	"Riser"

L_.str.10:                              ## @.str.10
	.asciz	"HDMI"

L_.str.11:                              ## @.str.11
	.asciz	"ATAPI"

L_.str.12:                              ## @.str.12
	.asciz	"Mobile-In"

L_.str.13:                              ## @.str.13
	.asciz	"Mobile-Out"

	.comm	_AC_DEFCFG_LOCATION,4,2         ## @AC_DEFCFG_LOCATION
	.comm	_AC_DEFCFG_LOCATION_SHIFT,4,2   ## @AC_DEFCFG_LOCATION_SHIFT
L_.str.14:                              ## @.str.14
	.asciz	"UNKNOWN"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_get_jack_location      ; -- Begin function snd_hda_get_jack_location
	.p2align	2
_snd_hda_get_jack_location:             ; @snd_hda_get_jack_location
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _AC_DEFCFG_LOCATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_DEFCFG_LOCATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _AC_DEFCFG_LOCATION_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_DEFCFG_LOCATION_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w21, w8, w9
	and	w8, w21, #0xf
	cmp	w8, #7
	b.hs	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, _snd_hda_get_jack_location.bases@PAGE
Lloh7:
	add	x9, x9, _snd_hda_get_jack_location.bases@PAGEOFF
	add	x22, x9, w8, uxtw #3
LBB0_2:
	ldr	x19, [x22]
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x20, _snd_hda_get_jack_location.specials_idx@PAGE
Lloh9:
	add	x20, x20, _snd_hda_get_jack_location.specials_idx@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x23, #0
Lloh10:
	adrp	x22, _snd_hda_get_jack_location.specials@PAGE
Lloh11:
	add	x22, x22, _snd_hda_get_jack_location.specials@PAGEOFF
Lloh12:
	adrp	x19, l_.str.14@PAGE
Lloh13:
	add	x19, x19, l_.str.14@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x23]
	cmp	w21, w8
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	cmp	x23, w0, sxtw
	b.lt	LBB0_5
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x19, l_.str.14@PAGE
Lloh15:
	add	x19, x19, l_.str.14@PAGEOFF
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @snd_hda_get_jack_location.bases
_snd_hda_get_jack_location.bases:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"N/A"

l_.str.1:                               ; @.str.1
	.asciz	"Rear"

l_.str.2:                               ; @.str.2
	.asciz	"Front"

l_.str.3:                               ; @.str.3
	.asciz	"Left"

l_.str.4:                               ; @.str.4
	.asciz	"Right"

l_.str.5:                               ; @.str.5
	.asciz	"Top"

l_.str.6:                               ; @.str.6
	.asciz	"Bottom"

	.section	__DATA,__data
_snd_hda_get_jack_location.specials_idx: ; @snd_hda_get_jack_location.specials_idx
	.ascii	"\007\b\027\030\03178"

	.section	__DATA,__const
	.p2align	3                               ; @snd_hda_get_jack_location.specials
_snd_hda_get_jack_location.specials:
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.9
	.quad	l_.str.10
	.quad	l_.str.11
	.quad	l_.str.12
	.quad	l_.str.13

	.section	__TEXT,__cstring,cstring_literals
l_.str.7:                               ; @.str.7
	.asciz	"Rear Panel"

l_.str.8:                               ; @.str.8
	.asciz	"Drive Bar"

l_.str.9:                               ; @.str.9
	.asciz	"Riser"

l_.str.10:                              ; @.str.10
	.asciz	"HDMI"

l_.str.11:                              ; @.str.11
	.asciz	"ATAPI"

l_.str.12:                              ; @.str.12
	.asciz	"Mobile-In"

l_.str.13:                              ; @.str.13
	.asciz	"Mobile-Out"

	.comm	_AC_DEFCFG_LOCATION,4,2         ; @AC_DEFCFG_LOCATION
	.comm	_AC_DEFCFG_LOCATION_SHIFT,4,2   ; @AC_DEFCFG_LOCATION_SHIFT
l_.str.14:                              ; @.str.14
	.asciz	"UNKNOWN"

.subsections_via_symbols
