	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssip_slave_stop_tx             ## -- Begin function ssip_slave_stop_tx
	.p2align	4, 0x90
_ssip_slave_stop_tx:                    ## @ssip_slave_stop_tx
	.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
	movq	%rdi, %r14
	callq	_hsi_client_drvdata
	movq	%rax, %r12
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	%r15, %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r12, %rbx
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	(%r12), %rax
	movq	_SEND_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_WAIT4READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	movq	_SEND_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ssip_set_txstate
	movq	%r14, %rdi
	callq	_hsi_stop_tx
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
LBB0_5:
	movq	%r15, %rdi
	callq	_atomic_read
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEND_READY,8,3                 ## @SEND_READY
	.comm	_WAIT4READY,8,3                 ## @WAIT4READY
	.comm	_SEND_IDLE,4,2                  ## @SEND_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stop TX %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssip_slave_stop_tx             ; -- Begin function ssip_slave_stop_tx
	.p2align	2
_ssip_slave_stop_tx:                    ; @ssip_slave_stop_tx
	.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	x19, x0
	bl	_hsi_client_drvdata
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_atomic_read
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	mov	x0, x20
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_4
; %bb.1:
	add	x22, x21, #12
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _SEND_READY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEND_READY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WAIT4READY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WAIT4READY@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _SEND_IDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEND_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ssip_set_txstate
	mov	x0, x19
	bl	_hsi_stop_tx
LBB0_3:
	mov	x0, x22
	bl	_spin_unlock_bh
LBB0_4:
	mov	x0, x20
	bl	_atomic_read
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SEND_READY,8,3                 ; @SEND_READY
	.comm	_WAIT4READY,8,3                 ; @WAIT4READY
	.comm	_SEND_IDLE,4,2                  ; @SEND_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stop TX %d\n"

.subsections_via_symbols
