	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_ac97_get_name              ## -- Begin function snd_ac97_get_name
	.p2align	4, 0x90
_snd_ac97_get_name:                     ## @snd_ac97_get_name
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	%esi, %edi
	shrl	$24, %edi
	callq	_printable
	movl	%eax, %r13d
	movl	%r14d, %edi
	shrl	$16, %edi
	callq	_printable
	movl	%eax, %ebx
	movl	%r14d, %edi
	shrl	$8, %edi
	callq	_printable
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_sprintf
	movq	_snd_ac97_codec_id_vendors@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_look_for_codec_id
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_strcpy
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_AC97_MODEM_PATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rbx), %ecx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	testl	%ecx, %ecx
	je	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	*%rax
LBB0_7:
	movq	_snd_ac97_codec_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_look_for_codec_id
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcat
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_strcat
	cmpl	$-1, 12(%r13)
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_strlen
	movslq	%eax, %rdi
	addq	%r12, %rdi
	movl	12(%r13), %edx
	notl	%edx
	andl	%r14d, %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_10:
	testq	%r15, %r15
	je	LBB0_14
## %bb.11:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_AC97_MODEM_PATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%r13), %ecx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.13:
	testl	%ecx, %ecx
	je	LBB0_14
LBB0_16:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_17:
	movq	%r12, %rdi
	callq	_strlen
	movslq	%eax, %rdi
	addq	%r12, %rdi
	movzbl	%r14b, %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_5:
	testl	%ecx, %ecx
	jne	LBB0_7
	jmp	LBB0_6
LBB0_15:
	testl	%ecx, %ecx
	je	LBB0_16
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%x %c%c%c"

	.comm	_snd_ac97_codec_id_vendors,4,2  ## @snd_ac97_codec_id_vendors
	.comm	_AC97_MODEM_PATCH,4,2           ## @AC97_MODEM_PATCH
	.comm	_snd_ac97_codec_ids,4,2         ## @snd_ac97_codec_ids
L_.str.1:                               ## @.str.1
	.asciz	" "

L_.str.2:                               ## @.str.2
	.asciz	" rev %d"

L_.str.3:                               ## @.str.3
	.asciz	" id %x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_ac97_get_name              ; -- Begin function snd_ac97_get_name
	.p2align	2
_snd_ac97_get_name:                     ; @snd_ac97_get_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	lsr	w0, w1, #24
	bl	_printable
	mov	x23, x0
	lsr	w0, w21, #16
	bl	_printable
	mov	x24, x0
	lsr	w0, w21, #8
	bl	_printable
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #8]
	str	x23, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_sprintf
Lloh2:
	adrp	x8, _snd_ac97_codec_id_vendors@GOTPAGE
Lloh3:
	ldr	x8, [x8, _snd_ac97_codec_id_vendors@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_look_for_codec_id
	cbz	x0, LBB0_17
; %bb.1:
	mov	x23, x0
	ldr	x1, [x0]
	mov	x0, x22
	bl	_strcpy
	cbz	x19, LBB0_6
; %bb.2:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w9, [x23, #8]
Lloh5:
	adrp	x10, _AC97_MODEM_PATCH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AC97_MODEM_PATCH@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	and	w9, w10, w9
	cbz	w20, LBB0_15
; %bb.4:
	cbz	w9, LBB0_6
LBB0_5:
	mov	x0, x19
	blr	x8
LBB0_6:
Lloh8:
	adrp	x8, _snd_ac97_codec_ids@GOTPAGE
Lloh9:
	ldr	x8, [x8, _snd_ac97_codec_ids@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_look_for_codec_id
	cbz	x0, LBB0_14
; %bb.7:
	mov	x23, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcat
	ldr	x1, [x23]
	mov	x0, x22
	bl	_strcat
	ldr	w8, [x23, #12]
	cmn	w8, #1
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_strlen
	add	x0, x22, w0, sxtw
	ldr	w8, [x23, #12]
	bic	w2, w21, w8
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
LBB0_9:
	cbz	x19, LBB0_17
; %bb.10:
	ldr	x1, [x23, #16]
	cbz	x1, LBB0_17
; %bb.11:
	ldr	w8, [x23, #8]
Lloh15:
	adrp	x9, _AC97_MODEM_PATCH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AC97_MODEM_PATCH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w20, LBB0_16
; %bb.12:
	cbz	w8, LBB0_17
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	br	x1
LBB0_14:
	mov	x0, x22
	bl	_strlen
	add	x0, x22, w0, sxtw
	and	w2, w21, #0xff
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_sprintf
LBB0_15:
	cbnz	w9, LBB0_6
	b	LBB0_5
LBB0_16:
	cbz	w8, LBB0_13
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%x %c%c%c"

	.comm	_snd_ac97_codec_id_vendors,4,2  ; @snd_ac97_codec_id_vendors
	.comm	_AC97_MODEM_PATCH,4,2           ; @AC97_MODEM_PATCH
	.comm	_snd_ac97_codec_ids,4,2         ; @snd_ac97_codec_ids
l_.str.1:                               ; @.str.1
	.asciz	" "

l_.str.2:                               ; @.str.2
	.asciz	" rev %d"

l_.str.3:                               ; @.str.3
	.asciz	" id %x"

.subsections_via_symbols
