	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_atiixp_codec_write
_snd_atiixp_codec_write:                ## @snd_atiixp_codec_write
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_snd_atiixp_acquire_codec
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movzwl	%r12w, %eax
	movq	_ATI_REG_PHYS_OUT_DATA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movzwl	%r15w, %esi
	movq	_ATI_REG_PHYS_OUT_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_ATI_REG_PHYS_OUT_ADDR_EN@GOTPCREL(%rip), %rcx
	movzwl	%r14w, %edx
	orl	%eax, %edx
	orl	%esi, %edx
	orl	(%rcx), %edx
	movq	_PHYS_OUT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atiixp_write                   ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATI_REG_PHYS_OUT_DATA_SHIFT,4,2 ## @ATI_REG_PHYS_OUT_DATA_SHIFT
	.comm	_ATI_REG_PHYS_OUT_ADDR_SHIFT,4,2 ## @ATI_REG_PHYS_OUT_ADDR_SHIFT
	.comm	_ATI_REG_PHYS_OUT_ADDR_EN,4,2   ## @ATI_REG_PHYS_OUT_ADDR_EN
	.comm	_PHYS_OUT_ADDR,4,2              ## @PHYS_OUT_ADDR
	.no_dead_strip	_snd_atiixp_codec_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_atiixp_codec_write
_snd_atiixp_codec_write:                ; @snd_atiixp_codec_write
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_snd_atiixp_acquire_codec
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ATI_REG_PHYS_OUT_DATA_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATI_REG_PHYS_OUT_DATA_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w22, w8
Lloh3:
	adrp	x9, _ATI_REG_PHYS_OUT_ADDR_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATI_REG_PHYS_OUT_ADDR_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w21, w9
Lloh6:
	adrp	x10, _ATI_REG_PHYS_OUT_ADDR_EN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ATI_REG_PHYS_OUT_ADDR_EN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w2, w8, w10
Lloh9:
	adrp	x8, _PHYS_OUT_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHYS_OUT_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_atiixp_write
LBB0_2:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATI_REG_PHYS_OUT_DATA_SHIFT,4,2 ; @ATI_REG_PHYS_OUT_DATA_SHIFT
	.comm	_ATI_REG_PHYS_OUT_ADDR_SHIFT,4,2 ; @ATI_REG_PHYS_OUT_ADDR_SHIFT
	.comm	_ATI_REG_PHYS_OUT_ADDR_EN,4,2   ; @ATI_REG_PHYS_OUT_ADDR_EN
	.comm	_PHYS_OUT_ADDR,4,2              ; @PHYS_OUT_ADDR
	.no_dead_strip	_snd_atiixp_codec_write
.subsections_via_symbols
