	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_data_sync
_cs_hsi_data_sync:                      ## @cs_hsi_data_sync
	.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	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movl	16(%r14), %edi
	callq	_cs_state_xfer_active
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	12(%r14), %r13
	movq	_wait@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_DEFINE_WAIT
	movl	16(%r14), %edi
	callq	_cs_state_xfer_active
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_prepare_to_wait
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	_CS_HSI_TRANSFER_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_finish_wait
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.7:
	movq	(%r14), %rdi
	movq	_CS_HSI_TRANSFER_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_9
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hsi_data_sync break, idle\n"

	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_CS_HSI_TRANSFER_TIMEOUT_MS,4,2 ## @CS_HSI_TRANSFER_TIMEOUT_MS
L_.str.1:                               ## @.str.1
	.asciz	"hsi_data_sync timeout after %d ms\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"hsi_data_sync done with res %d\n"

	.no_dead_strip	_cs_hsi_data_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_hsi_data_sync
_cs_hsi_data_sync:                      ; @cs_hsi_data_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	w0, [x19, #16]
	bl	_cs_state_xfer_active
	cbz	w0, LBB0_6
; %bb.1:
	add	x21, x19, #12
Lloh0:
	adrp	x22, _wait@GOTPAGE
Lloh1:
	ldr	x22, [x22, _wait@GOTPAGEOFF]
Lloh2:
	adrp	x25, _current@GOTPAGE
Lloh3:
	ldr	x25, [x25, _current@GOTPAGEOFF]
Lloh4:
	adrp	x26, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh6:
	adrp	x24, _CS_HSI_TRANSFER_TIMEOUT_MS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CS_HSI_TRANSFER_TIMEOUT_MS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_DEFINE_WAIT
	ldr	w0, [x19, #16]
	bl	_cs_state_xfer_active
	cbz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	bl	_signal_pending
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x26]
	mov	x0, x21
	mov	x1, x22
	bl	_prepare_to_wait
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	w0, [x24]
	bl	_msecs_to_jiffies
	bl	_schedule_timeout
	mov	x23, x0
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x21
	mov	x1, x22
	bl	_finish_wait
	cbnz	w23, LBB0_2
; %bb.5:
	ldr	x0, [x19]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_7:
	mov	w21, #0
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	x0, [x19]
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hsi_data_sync break, idle\n"

	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_CS_HSI_TRANSFER_TIMEOUT_MS,4,2 ; @CS_HSI_TRANSFER_TIMEOUT_MS
l_.str.1:                               ; @.str.1
	.asciz	"hsi_data_sync timeout after %d ms\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"hsi_data_sync done with res %d\n"

	.no_dead_strip	_cs_hsi_data_sync
.subsections_via_symbols
