	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hda_set_pib
_hda_set_pib:                           ## @hda_set_pib
	.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	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_hda_get_offset_stream
	movq	%rax, %r12
	movq	_HDAC_SDLPIB@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	%rax, %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_hda_set_reg_by_offset
	movq	(%r13), %rax
	leaq	(%r12,%rax), %rsi
	addq	$8192, %rsi                     ## imm = 0x2000
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_hda_set_reg_by_offset
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_HDA_DMA_PIB_ENTRY_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%r14d, %rdx
	imulq	%rcx, %rdx
	movq	%r15, (%rax,%rdx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDAC_SDLPIB,8,3                ## @HDAC_SDLPIB
	.comm	_HDA_DMA_PIB_ENTRY_LEN,4,2      ## @HDA_DMA_PIB_ENTRY_LEN
	.no_dead_strip	_hda_set_pib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hda_set_pib
_hda_set_pib:                           ; @hda_set_pib
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_hda_get_offset_stream
	mov	x22, x0
Lloh0:
	adrp	x23, _HDAC_SDLPIB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HDAC_SDLPIB@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, x0
	mov	x0, x21
	mov	x2, x19
	bl	_hda_set_reg_by_offset
	ldr	x8, [x23]
	add	x8, x22, x8
	add	x1, x8, #2, lsl #12             ; =8192
	mov	x0, x21
	mov	x2, x19
	bl	_hda_set_reg_by_offset
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _HDA_DMA_PIB_ENTRY_LEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HDA_DMA_PIB_ENTRY_LEN@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	sxtw	x10, w20
	mul	x9, x9, x10
	str	x19, [x8, x9]
LBB0_2:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HDAC_SDLPIB,8,3                ; @HDAC_SDLPIB
	.comm	_HDA_DMA_PIB_ENTRY_LEN,4,2      ; @HDA_DMA_PIB_ENTRY_LEN
	.no_dead_strip	_hda_set_pib
.subsections_via_symbols
