	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sonicvibes_setfmt
_snd_sonicvibes_setfmt:                 ## @snd_sonicvibes_setfmt
	.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	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SV_MCE@GOTPCREL(%rip), %rax
	movq	_SV_IREG_DMA_DATA_FMT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_SV_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_SV_REG
	movl	%eax, %edi
	callq	_inb
	movb	%al, (%r13)
	movl	$10, %edi
	callq	_udelay
LBB0_2:
	movb	(%r13), %al
	andb	%r12b, %al
	orb	%r15b, %al
	movb	%al, (%r13)
	movzbl	%al, %ebx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_SV_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	movl	$10, %edi
	callq	_udelay
	movq	_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_SV_REG
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movl	$10, %edi
	callq	_udelay
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SV_MCE,4,2                     ## @SV_MCE
	.comm	_SV_IREG_DMA_DATA_FMT,4,2       ## @SV_IREG_DMA_DATA_FMT
	.comm	_INDEX,4,2                      ## @INDEX
	.comm	_DATA,4,2                       ## @DATA
	.no_dead_strip	_snd_sonicvibes_setfmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_sonicvibes_setfmt
_snd_sonicvibes_setfmt:                 ; @snd_sonicvibes_setfmt
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _SV_MCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SV_MCE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SV_IREG_DMA_DATA_FMT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SV_IREG_DMA_DATA_FMT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w23, w9, w8
Lloh6:
	adrp	x24, _INDEX@GOTPAGE
Lloh7:
	ldr	x24, [x24, _INDEX@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_SV_REG
	mov	x1, x0
	mov	x0, x23
	bl	_outb
Lloh8:
	adrp	x23, _DATA@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DATA@GOTPAGEOFF]
	cbz	w22, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_SV_REG
	bl	_inb
	strb	w0, [x20]
	mov	w0, #10
	bl	_udelay
LBB0_2:
	ldrb	w8, [x20]
	and	w8, w8, w22
	orr	w21, w8, w21
	strb	w21, [x20]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_SV_REG
	mov	x1, x0
	mov	x0, x21
	bl	_outb
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x24]
	mov	x0, x20
	bl	_SV_REG
	mov	x1, x0
	mov	w0, #0
	bl	_outb
	mov	w0, #10
	bl	_udelay
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SV_MCE,4,2                     ; @SV_MCE
	.comm	_SV_IREG_DMA_DATA_FMT,4,2       ; @SV_IREG_DMA_DATA_FMT
	.comm	_INDEX,4,2                      ; @INDEX
	.comm	_DATA,4,2                       ; @DATA
	.no_dead_strip	_snd_sonicvibes_setfmt
.subsections_via_symbols
