	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_usr_attach
_tcp_usr_attach:                        ## @tcp_usr_attach
	.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	%rdi, %rbx
	callq	_sotoinpcb
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_TCPDEBUG1
	movq	%rbx, %rdi
	callq	_tcp_attach
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_SO_LINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_TCP_LINGERTIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_sotoinpcb
	movq	%rax, %rdi
	callq	_intotcpcb
	movq	%rax, %r15
LBB0_5:
	movq	_PRU_ATTACH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_TCPDEBUG2
	movq	_debug__user@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movq	%r15, %rsi
	callq	_TCP_PROBE2
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCPDEBUG0,4,2                  ## @TCPDEBUG0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp_usr_attach: inp != NULL"

	.comm	_SO_LINGER,4,2                  ## @SO_LINGER
	.comm	_TCP_LINGERTIME,8,3             ## @TCP_LINGERTIME
	.comm	_PRU_ATTACH,4,2                 ## @PRU_ATTACH
	.comm	_debug__user,4,2                ## @debug__user
	.no_dead_strip	_tcp_usr_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_usr_attach
_tcp_usr_attach:                        ; @tcp_usr_attach
	.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	x20, x0
	bl	_sotoinpcb
	cmp	x0, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	bl	_TCPDEBUG1
	mov	x0, x20
	bl	_tcp_attach
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_6
LBB0_2:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _SO_LINGER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SO_LINGER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _TCP_LINGERTIME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCP_LINGERTIME@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20, #8]
LBB0_5:
	mov	x0, x20
	bl	_sotoinpcb
	bl	_intotcpcb
	mov	x20, x0
LBB0_6:
Lloh8:
	adrp	x21, _PRU_ATTACH@GOTPAGE
Lloh9:
	ldr	x21, [x21, _PRU_ATTACH@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_TCPDEBUG2
Lloh10:
	adrp	x8, _debug__user@GOTPAGE
Lloh11:
	ldr	x8, [x8, _debug__user@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_TCP_PROBE2
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TCPDEBUG0,4,2                  ; @TCPDEBUG0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp_usr_attach: inp != NULL"

	.comm	_SO_LINGER,4,2                  ; @SO_LINGER
	.comm	_TCP_LINGERTIME,8,3             ; @TCP_LINGERTIME
	.comm	_PRU_ATTACH,4,2                 ; @PRU_ATTACH
	.comm	_debug__user,4,2                ; @debug__user
	.no_dead_strip	_tcp_usr_attach
.subsections_via_symbols
