	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___tcp_hpts_remove              ## -- Begin function __tcp_hpts_remove
	.p2align	4, 0x90
___tcp_hpts_remove:                     ## @__tcp_hpts_remove
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_INP_WLOCK_ASSERT
	movq	_HPTS_REMOVE_OUTPUT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_tcp_hpts_lock
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_tcp_hpts_remove_locked_output
	movq	%r12, %rdi
	callq	_mtx_unlock
LBB0_2:
	movq	_HPTS_REMOVE_INPUT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_tcp_input_lock
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_tcp_hpts_remove_locked_input
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPTS_REMOVE_OUTPUT,4,2         ## @HPTS_REMOVE_OUTPUT
	.comm	_HPTS_REMOVE_INPUT,4,2          ## @HPTS_REMOVE_INPUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___tcp_hpts_remove              ; -- Begin function __tcp_hpts_remove
	.p2align	2
___tcp_hpts_remove:                     ; @__tcp_hpts_remove
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_INP_WLOCK_ASSERT
Lloh0:
	adrp	x8, _HPTS_REMOVE_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPTS_REMOVE_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_tcp_hpts_lock
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_tcp_hpts_remove_locked_output
	mov	x0, x22
	bl	_mtx_unlock
LBB0_2:
Lloh3:
	adrp	x8, _HPTS_REMOVE_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HPTS_REMOVE_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_tcp_input_lock
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_tcp_hpts_remove_locked_input
	mov	x0, x22
	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	_mtx_unlock
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HPTS_REMOVE_OUTPUT,4,2         ; @HPTS_REMOVE_OUTPUT
	.comm	_HPTS_REMOVE_INPUT,4,2          ; @HPTS_REMOVE_INPUT
.subsections_via_symbols
