	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bte_process_handshake
_bte_process_handshake:                 ## @bte_process_handshake
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LOG
	cmpl	$129, %r14d
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %r14
	movq	16(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 12(%r14)
	movq	_STATE_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	*%rax
	movq	_bte_ctrl_reqs@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_btmemb_free
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %edi
	callq	_LWP_ThreadSignal
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___bte_send_pending_request     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bte_process_handshake(%p)\n"

	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.comm	_STATE_SENT,4,2                 ## @STATE_SENT
	.comm	_bte_ctrl_reqs,4,2              ## @bte_ctrl_reqs
	.no_dead_strip	_bte_process_handshake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bte_process_handshake
_bte_process_handshake:                 ; @bte_process_handshake
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_LOG
	cmp	w20, #129
	b.ne	LBB0_3
; %bb.1:
	ldr	x20, [x19, #8]
	ldr	x8, [x20, #16]
	str	x8, [x19, #8]
Lloh2:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _STATE_SENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATE_SENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w2, [x20, #8]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
	mov	x1, x19
	blr	x8
Lloh8:
	adrp	x0, _bte_ctrl_reqs@GOTPAGE
Lloh9:
	ldr	x0, [x0, _bte_ctrl_reqs@GOTPAGEOFF]
	mov	x1, x20
	bl	_btmemb_free
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x19]
	bl	_LWP_ThreadSignal
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___bte_send_pending_request
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bte_process_handshake(%p)\n"

	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.comm	_STATE_SENT,4,2                 ; @STATE_SENT
	.comm	_bte_ctrl_reqs,4,2              ; @bte_ctrl_reqs
	.no_dead_strip	_bte_process_handshake
.subsections_via_symbols
