	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bte_send_pending_request
___bte_send_pending_request:            ## @__bte_send_pending_request
	.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	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_STATE_DISCONNECTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.2:
	movq	_STATE_DISCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	movq	_STATE_SENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	24(%r15), %edi
	movl	32(%rbx), %esi
	callq	_l2ca_datawrite
	movq	%rax, %r14
	movl	32(%rbx), %edi
	callq	_btpbuf_free
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_9
## %bb.4:
	movq	24(%rbx), %rax
	movq	%rax, 16(%r15)
	movq	%r14, 16(%rbx)
	movq	_STATE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	12(%r15), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	*%rax
	movq	_bte_ctrl_reqs@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_btmemb_free
	jmp	LBB0_9
LBB0_6:
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ERR_CLSD@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %r14
LBB0_9:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	8(%r15), %edi
	callq	_LWP_ThreadSignal
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	_STATE_DISCONNECTING,8,3        ## @STATE_DISCONNECTING
	.comm	_STATE_DISCONNECTED,8,3         ## @STATE_DISCONNECTED
	.comm	_ERR_CLSD,8,3                   ## @ERR_CLSD
	.comm	_STATE_SENDING,4,2              ## @STATE_SENDING
	.comm	_STATE_FAILED,4,2               ## @STATE_FAILED
	.comm	_bte_ctrl_reqs,4,2              ## @bte_ctrl_reqs
	.no_dead_strip	___bte_send_pending_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bte_send_pending_request
___bte_send_pending_request:            ; @__bte_send_pending_request
	.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
	ldr	x19, [x0, #16]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _STATE_DISCONNECTING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATE_DISCONNECTING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _STATE_DISCONNECTED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _STATE_DISCONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _ERR_CLSD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_CLSD@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
	b	LBB0_8
LBB0_3:
Lloh9:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh11:
	ldr	x20, [x8]
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x8, _STATE_SENDING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STATE_SENDING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x21, #24]
	ldr	w1, [x19, #32]
	bl	_l2ca_datawrite
	mov	x20, x0
	ldr	w0, [x19, #32]
	bl	_btpbuf_free
Lloh15:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x19, #24]
	str	x8, [x21, #16]
	str	x20, [x19, #16]
Lloh18:
	adrp	x8, _STATE_FAILED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STATE_FAILED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x21, #12]
	mov	x1, x21
	mov	x2, x20
	blr	x8
Lloh21:
	adrp	x0, _bte_ctrl_reqs@GOTPAGE
Lloh22:
	ldr	x0, [x0, _bte_ctrl_reqs@GOTPAGEOFF]
	mov	x1, x19
	bl	_btmemb_free
	b	LBB0_8
LBB0_7:
	ldr	w0, [x21, #8]
	bl	_LWP_ThreadSignal
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	_STATE_DISCONNECTING,8,3        ; @STATE_DISCONNECTING
	.comm	_STATE_DISCONNECTED,8,3         ; @STATE_DISCONNECTED
	.comm	_ERR_CLSD,8,3                   ; @ERR_CLSD
	.comm	_STATE_SENDING,4,2              ; @STATE_SENDING
	.comm	_STATE_FAILED,4,2               ; @STATE_FAILED
	.comm	_bte_ctrl_reqs,4,2              ; @bte_ctrl_reqs
	.no_dead_strip	___bte_send_pending_request
.subsections_via_symbols
