	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function azx_init_cmd_io
_azx_init_cmd_io:                       ## @azx_init_cmd_io
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	48(%rbx), %rax
	movq	56(%rbx), %rdx
	movq	%rdx, 64(%rbx)
	movq	%rax, 72(%rbx)
	movq	_CORBLBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_azx_writel
	movq	_CORBUBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	64(%rbx), %rdi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_azx_writel
	movq	_CORBSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_azx_writeb
	movq	_CORBWP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_azx_writew
	movq	_CORBRP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICH6_CORBRP_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_azx_writew
	movq	_CORBCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICH6_CORBCTL_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_azx_writeb
	movl	$2048, %eax                     ## imm = 0x800
	movq	56(%rbx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	addq	48(%rbx), %rax
	movq	%rax, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_RIRBLBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_azx_writel
	movq	_RIRBUBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%rbx), %rdi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_azx_writel
	movq	_RIRBSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_azx_writeb
	movq	_RIRBWP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICH6_RIRBWP_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_azx_writew
	movq	_AZX_DCAPS_CTX_WORKAROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movq	_RINTCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %eax
	movl	$192, %edx
	cmovel	%eax, %edx
	movq	%rbx, %rdi
	callq	_azx_writew
	movq	_RIRBCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICH6_RBCTL_DMA_EN@GOTPCREL(%rip), %rax
	movq	_ICH6_RBCTL_IRQ_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_azx_writeb
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CORBLBASE,4,2                  ## @CORBLBASE
	.comm	_CORBUBASE,4,2                  ## @CORBUBASE
	.comm	_CORBSIZE,4,2                   ## @CORBSIZE
	.comm	_CORBWP,4,2                     ## @CORBWP
	.comm	_CORBRP,4,2                     ## @CORBRP
	.comm	_ICH6_CORBRP_RST,4,2            ## @ICH6_CORBRP_RST
	.comm	_CORBCTL,4,2                    ## @CORBCTL
	.comm	_ICH6_CORBCTL_RUN,4,2           ## @ICH6_CORBCTL_RUN
	.comm	_RIRBLBASE,4,2                  ## @RIRBLBASE
	.comm	_RIRBUBASE,4,2                  ## @RIRBUBASE
	.comm	_RIRBSIZE,4,2                   ## @RIRBSIZE
	.comm	_RIRBWP,4,2                     ## @RIRBWP
	.comm	_ICH6_RIRBWP_RST,4,2            ## @ICH6_RIRBWP_RST
	.comm	_AZX_DCAPS_CTX_WORKAROUND,4,2   ## @AZX_DCAPS_CTX_WORKAROUND
	.comm	_RINTCNT,4,2                    ## @RINTCNT
	.comm	_RIRBCTL,4,2                    ## @RIRBCTL
	.comm	_ICH6_RBCTL_DMA_EN,4,2          ## @ICH6_RBCTL_DMA_EN
	.comm	_ICH6_RBCTL_IRQ_EN,4,2          ## @ICH6_RBCTL_IRQ_EN
	.no_dead_strip	_azx_init_cmd_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function azx_init_cmd_io
_azx_init_cmd_io:                       ; @azx_init_cmd_io
	.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	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irq
	ldp	x8, x2, [x20, #48]
	stp	x2, x8, [x20, #64]
Lloh0:
	adrp	x8, _CORBLBASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CORBLBASE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_azx_writel
Lloh3:
	adrp	x8, _CORBUBASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CORBUBASE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x0, [x20, #64]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_azx_writel
Lloh6:
	adrp	x8, _CORBSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CORBSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #2
	bl	_azx_writeb
Lloh9:
	adrp	x8, _CORBWP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CORBWP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_azx_writew
Lloh12:
	adrp	x8, _CORBRP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CORBRP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _ICH6_CORBRP_RST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICH6_CORBRP_RST@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_azx_writew
Lloh18:
	adrp	x8, _CORBCTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CORBCTL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _ICH6_CORBCTL_RUN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ICH6_CORBCTL_RUN@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_azx_writeb
	ldp	x9, x8, [x20, #48]
	add	x8, x8, #2048
	str	x8, [x20, #8]
	add	x8, x9, #2048
	stp	xzr, x8, [x20, #32]
	str	xzr, [x20, #24]
	ldr	w0, [x20, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh24:
	adrp	x8, _RIRBLBASE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RIRBLBASE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x20
	bl	_azx_writel
Lloh27:
	adrp	x8, _RIRBUBASE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RIRBUBASE@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	ldr	x0, [x20, #8]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_azx_writel
Lloh30:
	adrp	x8, _RIRBSIZE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RIRBSIZE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #2
	bl	_azx_writeb
Lloh33:
	adrp	x8, _RIRBWP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RIRBWP@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _ICH6_RIRBWP_RST@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ICH6_RIRBWP_RST@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_azx_writew
	ldr	w8, [x20]
Lloh39:
	adrp	x9, _AZX_DCAPS_CTX_WORKAROUND@GOTPAGE
Lloh40:
	ldr	x9, [x9, _AZX_DCAPS_CTX_WORKAROUND@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _RINTCNT@GOTPAGE
Lloh43:
	ldr	x10, [x10, _RINTCNT@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x10]
	tst	w9, w8
	mov	w8, #192
	csinc	w2, w8, wzr, ne
	mov	x0, x20
	bl	_azx_writew
Lloh45:
	adrp	x8, _RIRBCTL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RIRBCTL@GOTPAGEOFF]
Lloh47:
	adrp	x9, _ICH6_RBCTL_DMA_EN@GOTPAGE
Lloh48:
	ldr	x9, [x9, _ICH6_RBCTL_DMA_EN@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	ldr	w8, [x9]
Lloh51:
	adrp	x9, _ICH6_RBCTL_IRQ_EN@GOTPAGE
Lloh52:
	ldr	x9, [x9, _ICH6_RBCTL_IRQ_EN@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_azx_writeb
	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	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_CORBLBASE,4,2                  ; @CORBLBASE
	.comm	_CORBUBASE,4,2                  ; @CORBUBASE
	.comm	_CORBSIZE,4,2                   ; @CORBSIZE
	.comm	_CORBWP,4,2                     ; @CORBWP
	.comm	_CORBRP,4,2                     ; @CORBRP
	.comm	_ICH6_CORBRP_RST,4,2            ; @ICH6_CORBRP_RST
	.comm	_CORBCTL,4,2                    ; @CORBCTL
	.comm	_ICH6_CORBCTL_RUN,4,2           ; @ICH6_CORBCTL_RUN
	.comm	_RIRBLBASE,4,2                  ; @RIRBLBASE
	.comm	_RIRBUBASE,4,2                  ; @RIRBUBASE
	.comm	_RIRBSIZE,4,2                   ; @RIRBSIZE
	.comm	_RIRBWP,4,2                     ; @RIRBWP
	.comm	_ICH6_RIRBWP_RST,4,2            ; @ICH6_RIRBWP_RST
	.comm	_AZX_DCAPS_CTX_WORKAROUND,4,2   ; @AZX_DCAPS_CTX_WORKAROUND
	.comm	_RINTCNT,4,2                    ; @RINTCNT
	.comm	_RIRBCTL,4,2                    ; @RIRBCTL
	.comm	_ICH6_RBCTL_DMA_EN,4,2          ; @ICH6_RBCTL_DMA_EN
	.comm	_ICH6_RBCTL_IRQ_EN,4,2          ; @ICH6_RBCTL_IRQ_EN
	.no_dead_strip	_azx_init_cmd_io
.subsections_via_symbols
