	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_cbsend
_start_cbsend:                          ## @start_cbsend
	.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	24(%rdi), %r12
	movl	(%r12), %eax
	movq	_BS_SUSPEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_DEBUG_TRANSCMD@GOTPCREL(%rip), %rax
	movq	_DEBUG_LOCKCMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_gig_dbg
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_2:
	movq	%rdi, %r15
	movq	_BS_ATOPEN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.7:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	_BS_ATREADY@GOTPCREL(%rip), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	testl	%ecx, (%r12)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, 8(%r12)
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_atwrite_submit
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_complete_cb
	movl	%ebx, %r14d
	jmp	LBB0_12
LBB0_3:
	movq	_DEBUG_TRANSCMD@GOTPCREL(%rip), %rax
	movq	_DEBUG_LOCKCMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_gig_dbg
	movl	16(%r15), %edi
	movq	_HD_OPEN_ATCHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BAS_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_req_submit
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_14
## %bb.4:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 8(%r15)
	je	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_complete_cb
	cmpq	$0, 8(%r15)
	jne	LBB0_6
LBB0_13:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
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	_BS_SUSPEND,4,2                 ## @BS_SUSPEND
	.comm	_DEBUG_TRANSCMD,4,2             ## @DEBUG_TRANSCMD
	.comm	_DEBUG_LOCKCMD,4,2              ## @DEBUG_LOCKCMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"suspending"

	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.comm	_BS_ATOPEN,4,2                  ## @BS_ATOPEN
L_.str.1:                               ## @.str.1
	.asciz	"AT channel not open"

	.comm	_HD_OPEN_ATCHANNEL,4,2          ## @HD_OPEN_ATCHANNEL
	.comm	_BAS_TIMEOUT,4,2                ## @BAS_TIMEOUT
	.comm	_BS_ATREADY,4,2                 ## @BS_ATREADY
	.no_dead_strip	_start_cbsend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_cbsend
_start_cbsend:                          ; @start_cbsend
	.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
	ldr	x22, [x0, #24]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _BS_SUSPEND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BS_SUSPEND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DEBUG_TRANSCMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG_TRANSCMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DEBUG_LOCKCMD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DEBUG_LOCKCMD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gig_dbg
Lloh11:
	adrp	x8, _EHOSTUNREACH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EHOSTUNREACH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_2:
	mov	x19, x0
Lloh14:
	adrp	x9, _BS_ATOPEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BS_ATOPEN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.4:
	mov	w20, #0
Lloh17:
	adrp	x23, _BS_ATREADY@GOTPAGE
Lloh18:
	ldr	x23, [x23, _BS_ATREADY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x22, #8]
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_atwrite_submit
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_complete_cb
	mov	x20, x21
	b	LBB0_5
LBB0_9:
Lloh19:
	adrp	x8, _DEBUG_TRANSCMD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DEBUG_TRANSCMD@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _DEBUG_LOCKCMD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DEBUG_LOCKCMD@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_gig_dbg
	ldr	w0, [x19, #16]
Lloh27:
	adrp	x8, _HD_OPEN_ATCHANNEL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HD_OPEN_ATCHANNEL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _BAS_TIMEOUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BAS_TIMEOUT@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	w2, #0
	bl	_req_submit
	mov	x20, x0
	tbz	w0, #31, LBB0_14
; %bb.10:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_complete_cb
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_11
	b	LBB0_13
LBB0_12:
	mov	w20, #0
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BS_SUSPEND,4,2                 ; @BS_SUSPEND
	.comm	_DEBUG_TRANSCMD,4,2             ; @DEBUG_TRANSCMD
	.comm	_DEBUG_LOCKCMD,4,2              ; @DEBUG_LOCKCMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"suspending"

	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.comm	_BS_ATOPEN,4,2                  ; @BS_ATOPEN
l_.str.1:                               ; @.str.1
	.asciz	"AT channel not open"

	.comm	_HD_OPEN_ATCHANNEL,4,2          ; @HD_OPEN_ATCHANNEL
	.comm	_BAS_TIMEOUT,4,2                ; @BAS_TIMEOUT
	.comm	_BS_ATREADY,4,2                 ; @BS_ATREADY
	.no_dead_strip	_start_cbsend
.subsections_via_symbols
