	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssip_tx_data_complete
_ssip_tx_data_complete:                 ## @ssip_tx_data_complete
	.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, %r14
	movq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_hsi_client_drvdata
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	_HSI_STATUS_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_ssip_error
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SENDING_SWBREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ssip_set_txstate
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	callq	_ssip_claim_cmd
	movq	%rax, %rbx
	movq	_SSIP_SWBREAK_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ssip_set_cmd
	movq	_ssip_swbreak_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hsi_async_write
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%r15, %rdi
	callq	_ssip_xmit
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ssip_free_data                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HSI_STATUS_ERROR,8,3           ## @HSI_STATUS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX data error\n"

	.comm	_SENDING_SWBREAK,4,2            ## @SENDING_SWBREAK
	.comm	_SSIP_SWBREAK_CMD,4,2           ## @SSIP_SWBREAK_CMD
	.comm	_ssip_swbreak_complete,4,2      ## @ssip_swbreak_complete
L_.str.1:                               ## @.str.1
	.asciz	"Send SWBREAK\n"

	.no_dead_strip	_ssip_tx_data_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssip_tx_data_complete
_ssip_tx_data_complete:                 ; @ssip_tx_data_complete
	.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
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_hsi_client_drvdata
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _HSI_STATUS_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HSI_STATUS_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x20
	bl	_ssip_error
	b	LBB0_5
LBB0_2:
	mov	x21, x0
	bl	_spin_lock_bh
	add	x0, x21, #4
	bl	_list_empty
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _SENDING_SWBREAK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SENDING_SWBREAK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ssip_set_txstate
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x21
	bl	_ssip_claim_cmd
	mov	x21, x0
Lloh8:
	adrp	x8, _SSIP_SWBREAK_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSIP_SWBREAK_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_ssip_set_cmd
Lloh11:
	adrp	x8, _ssip_swbreak_complete@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ssip_swbreak_complete@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x20
	mov	x1, x21
	bl	_hsi_async_write
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x20
	bl	_ssip_xmit
LBB0_5:
	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	_ssip_free_data
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HSI_STATUS_ERROR,8,3           ; @HSI_STATUS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX data error\n"

	.comm	_SENDING_SWBREAK,4,2            ; @SENDING_SWBREAK
	.comm	_SSIP_SWBREAK_CMD,4,2           ; @SSIP_SWBREAK_CMD
	.comm	_ssip_swbreak_complete,4,2      ; @ssip_swbreak_complete
l_.str.1:                               ; @.str.1
	.asciz	"Send SWBREAK\n"

	.no_dead_strip	_ssip_tx_data_complete
.subsections_via_symbols
