	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_buf_config
_cs_hsi_buf_config:                     ## @cs_hsi_buf_config
	.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	%rsi, %r13
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	leaq	4(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	_CS_STATE_CONFIGURED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_2
## %bb.1:
	movq	_CS_STATE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	callq	_cs_hsi_data_sync
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	64(%rbx), %edi
	callq	_cs_state_xfer_active
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_check_buf_params
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:
	movq	8(%r13), %rax
	movq	%rax, 16(%rbx)
	movq	56(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	(%r13), %ecx
	movl	%ecx, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	$0, 40(%rbx)
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rsi
	callq	_cs_hsi_data_enable
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_13:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_14
LBB0_7:
	movl	%r15d, %esi
	callq	_cs_hsi_data_disable
LBB0_8:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	(%rbx), %eax
	cmpl	%eax, %r15d
	je	LBB0_14
## %bb.9:
	movq	_CS_STATE_CONFIGURED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_11
## %bb.10:
	leaq	8(%rbx), %rdi
	movq	_PM_QOS_CPU_DMA_LATENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CS_QOS_LATENCY_FOR_DATA_USEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pm_qos_add_request
	xorl	%eax, %eax
	callq	_local_bh_disable
	movq	%rbx, %rdi
	callq	_cs_hsi_read_on_data
	xorl	%eax, %eax
	callq	_local_bh_enable
	jmp	LBB0_14
LBB0_11:
	cmpl	%ecx, %r15d
	jne	LBB0_14
## %bb.12:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_pm_qos_remove_request
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CS_STATE_CONFIGURED,4,2        ## @CS_STATE_CONFIGURED
	.comm	_CS_STATE_OPENED,4,2            ## @CS_STATE_OPENED
	.comm	_PM_QOS_CPU_DMA_LATENCY,4,2     ## @PM_QOS_CPU_DMA_LATENCY
	.comm	_CS_QOS_LATENCY_FOR_DATA_USEC,4,2 ## @CS_QOS_LATENCY_FOR_DATA_USEC
	.no_dead_strip	_cs_hsi_buf_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_hsi_buf_config
_cs_hsi_buf_config:                     ; @cs_hsi_buf_config
	.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	x23, x1
	mov	x19, x0
	mov	x22, x0
	ldr	w21, [x22], #4
	mov	x0, x22
	bl	_spin_lock_bh
Lloh0:
	adrp	x24, _CS_STATE_CONFIGURED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CS_STATE_CONFIGURED@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w21, w8
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _CS_STATE_OPENED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CS_STATE_OPENED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_cs_hsi_data_sync
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x19, #64]
	bl	_cs_state_xfer_active
	bl	_WARN_ON
	mov	x0, x22
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, x23
	bl	_check_buf_params
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x8, [x23, #8]
	ldr	x9, [x19, #56]
	str	x8, [x9]
	ldr	w9, [x23]
	str	w9, [x19, #48]
	stp	x8, xzr, [x19, #16]
	stp	xzr, xzr, [x19, #32]
	mov	x0, x19
	cbz	x8, LBB0_8
; %bb.5:
	mov	x1, x23
	bl	_cs_hsi_data_enable
	b	LBB0_9
LBB0_6:
	mov	x20, x0
	b	LBB0_14
LBB0_7:
	mov	x0, x22
	bl	_spin_unlock_bh
	b	LBB0_14
LBB0_8:
	mov	x1, x21
	bl	_cs_hsi_data_disable
LBB0_9:
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	w8, [x19]
	cmp	w21, w8
	b.eq	LBB0_14
; %bb.10:
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	add	x0, x19, #8
Lloh5:
	adrp	x8, _PM_QOS_CPU_DMA_LATENCY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PM_QOS_CPU_DMA_LATENCY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _CS_QOS_LATENCY_FOR_DATA_USEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CS_QOS_LATENCY_FOR_DATA_USEC@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_pm_qos_add_request
	bl	_local_bh_disable
	mov	x0, x19
	bl	_cs_hsi_read_on_data
	bl	_local_bh_enable
	b	LBB0_14
LBB0_12:
	cmp	w21, w9
	b.ne	LBB0_14
; %bb.13:
	add	x0, x19, #8
	bl	_pm_qos_remove_request
LBB0_14:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CS_STATE_CONFIGURED,4,2        ; @CS_STATE_CONFIGURED
	.comm	_CS_STATE_OPENED,4,2            ; @CS_STATE_OPENED
	.comm	_PM_QOS_CPU_DMA_LATENCY,4,2     ; @PM_QOS_CPU_DMA_LATENCY
	.comm	_CS_QOS_LATENCY_FOR_DATA_USEC,4,2 ; @CS_QOS_LATENCY_FOR_DATA_USEC
	.no_dead_strip	_cs_hsi_buf_config
.subsections_via_symbols
