	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_ccb                       ## -- Begin function send_ccb
	.p2align	4, 0x90
_send_ccb:                              ## @send_ccb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdi, -24(%rbp)
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_warnx
LBB0_2:
	movl	%r14d, 4(%rbx)
	movq	%rbx, %rdi
	callq	_XPT_FC_IS_QUEUED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_periph_links@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_pending_queue@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
LBB0_4:
	movq	_targ_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	movl	$8, %edx
	callq	_write
	cmpl	$8, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movq	_CAM_PROVIDE_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending ccb (%#x)"

	.comm	_pending_queue,4,2              ## @pending_queue
	.comm	_periph_links,4,2               ## @periph_links
	.comm	_targ_fd,4,2                    ## @targ_fd
L_.str.1:                               ## @.str.1
	.asciz	"write ccb"

	.comm	_CAM_PROVIDE_FAIL,4,2           ## @CAM_PROVIDE_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_ccb                       ; -- Begin function send_ccb
	.p2align	2
_send_ccb:                              ; @send_ccb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x19, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_2:
	str	w20, [x19, #4]
	mov	x0, x19
	bl	_XPT_FC_IS_QUEUED
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _periph_links@GOTPAGE
Lloh6:
	ldr	x8, [x8, _periph_links@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x0, _pending_queue@GOTPAGE
Lloh9:
	ldr	x0, [x0, _pending_queue@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
LBB0_4:
Lloh10:
	adrp	x8, _targ_fd@GOTPAGE
Lloh11:
	ldr	x8, [x8, _targ_fd@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #8
	bl	_write
	cmp	w0, #8
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
Lloh15:
	adrp	x8, _CAM_PROVIDE_FAIL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAM_PROVIDE_FAIL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending ccb (%#x)"

	.comm	_pending_queue,4,2              ; @pending_queue
	.comm	_periph_links,4,2               ; @periph_links
	.comm	_targ_fd,4,2                    ; @targ_fd
l_.str.1:                               ; @.str.1
	.asciz	"write ccb"

	.comm	_CAM_PROVIDE_FAIL,4,2           ; @CAM_PROVIDE_FAIL
.subsections_via_symbols
