	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsp_get_vers
_dsp_get_vers:                          ## @dsp_get_vers
	.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, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movl	%eax, %edi
	callq	_DDB
	leaq	8(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	$0, (%r15)
	movq	%r15, %rdi
	movl	$225, %esi
	callq	_sb_dsp_command
	movl	$-100000, %ebx                  ## imm = 0xFFFE7960
	movq	_DSP_DATA_AVAIL@GOTPCREL(%rip), %r12
	movq	_DSP_READ@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_inb
	testb	$-128, %al
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %r14d
	movl	(%r13), %edi
	callq	_inb
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, (%r15)
	jmp	LBB0_4
LBB0_6:
	movl	%eax, 4(%r15)
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	(%r15), %esi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DDB                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entered dsp_get_vers()\n"

	.comm	_DSP_DATA_AVAIL,4,2             ## @DSP_DATA_AVAIL
	.comm	_DSP_READ,4,2                   ## @DSP_READ
L_.str.1:                               ## @.str.1
	.asciz	"DSP version %d.%02d\n"

	.no_dead_strip	_dsp_get_vers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsp_get_vers
_dsp_get_vers:                          ; @dsp_get_vers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	bl	_DDB
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	xzr, [x19]
	mov	x0, x19
	mov	w1, #225
	bl	_sb_dsp_command
	mov	w21, #31072
	movk	w21, #65534, lsl #16
Lloh2:
	adrp	x22, _DSP_DATA_AVAIL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DSP_DATA_AVAIL@GOTPAGEOFF]
Lloh4:
	adrp	x23, _DSP_READ@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DSP_READ@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	adds	w21, w21, #1
	b.hs	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_inb
	tbz	w0, #7, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w24, [x19]
	ldr	w0, [x23]
	bl	_inb
	cbnz	w24, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w0, [x19]
	b	LBB0_1
LBB0_5:
	str	w0, [x19, #4]
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldp	w8, w9, [x19]
	stp	x8, x9, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_DDB
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entered dsp_get_vers()\n"

	.comm	_DSP_DATA_AVAIL,4,2             ; @DSP_DATA_AVAIL
	.comm	_DSP_READ,4,2                   ; @DSP_READ
l_.str.1:                               ; @.str.1
	.asciz	"DSP version %d.%02d\n"

	.no_dead_strip	_dsp_get_vers
.subsections_via_symbols
