	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_tcp_add_port
_nvmet_tcp_add_port:                    ## @nvmet_tcp_add_port
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %r14
	movl	8(%r12), %esi
	cmpl	$129, %esi
	je	LBB0_3
## %bb.4:
	cmpl	$128, %esi
	jne	LBB0_24
## %bb.5:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_3:
	movq	_AF_INET@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movl	16(%r12), %ecx
	movl	20(%r12), %edx
	leaq	16(%r15), %r13
	movq	_init_net@GOTPCREL(%rip), %rdi
	movq	%r13, %r8
	callq	_inet_pton_with_scope
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	movl	16(%r12), %edx
	movl	20(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_8
LBB0_24:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_9:
	movq	%r12, 24(%r14)
	movl	$-1, (%r14)
	leaq	32(%r15), %rdi
	movq	_nvmet_tcp_accept_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	jns	LBB0_11
## %bb.10:
	movq	_NVMET_TCP_DEF_INLINE_DATA_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_11:
	movl	16(%r14), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %r15
	movq	%r15, %rcx
	callq	_sock_create
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_8
LBB0_13:
	movq	8(%r14), %rdi
	movq	(%rdi), %rax
	movq	%r14, 8(%rax)
	movl	(%rax), %ecx
	movl	%ecx, 20(%r14)
	movq	_nvmet_tcp_listen_data_ready@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	$1, -44(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCP_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	callq	_kernel_setsockopt
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_15
LBB0_16:
	movq	(%r15), %rdi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	callq	_kernel_setsockopt
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_15
LBB0_18:
	movq	(%r15), %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_kernel_bind
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_15
LBB0_20:
	movq	(%r15), %rdi
	movl	$128, %esi
	callq	_kernel_listen
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rdi
LBB0_15:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	(%r15), %rdi
	callq	_sock_release
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%r14, 24(%r12)
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_pr_info
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"address family %d not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_init_net,4,2                   ## @init_net
L_.str.1:                               ## @.str.1
	.asciz	"malformed ip/port passed: %s:%s\n"

	.comm	_nvmet_tcp_accept_work,4,2      ## @nvmet_tcp_accept_work
	.comm	_NVMET_TCP_DEF_INLINE_DATA_SIZE,8,3 ## @NVMET_TCP_DEF_INLINE_DATA_SIZE
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
L_.str.2:                               ## @.str.2
	.asciz	"failed to create a socket\n"

	.comm	_nvmet_tcp_listen_data_ready,4,2 ## @nvmet_tcp_listen_data_ready
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
L_.str.3:                               ## @.str.3
	.asciz	"failed to set TCP_NODELAY sock opt %d\n"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
L_.str.4:                               ## @.str.4
	.asciz	"failed to set SO_REUSEADDR sock opt %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to bind port socket %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to listen %d on port sock\n"

L_.str.7:                               ## @.str.7
	.asciz	"enabling port %d (%pISpc)\n"

	.no_dead_strip	_nvmet_tcp_add_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_tcp_add_port
_nvmet_tcp_add_port:                    ; @nvmet_tcp_add_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20, #8]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_24
LBB0_5:
Lloh8:
	adrp	x8, _AF_INET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	add	x21, x19, #16
	ldp	w3, w2, [x20, #16]
Lloh10:
	adrp	x0, _init_net@GOTPAGE
Lloh11:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	mov	x4, x21
	bl	_inet_pton_with_scope
	cbz	w0, LBB0_9
; %bb.7:
	mov	x23, x0
	ldp	w9, w8, [x20, #16]
	stp	x8, x9, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_23
LBB0_8:
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_23
LBB0_9:
	str	x20, [x19, #24]
	mov	w8, #-1
	str	w8, [x19]
	add	x0, x19, #32
Lloh19:
	adrp	x8, _nvmet_tcp_accept_work@GOTPAGE
Lloh20:
	ldr	x8, [x8, _nvmet_tcp_accept_work@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	x8, [x19, #24]
	ldr	x9, [x8]
	tbz	x9, #63, LBB0_11
; %bb.10:
Lloh22:
	adrp	x9, _NVMET_TCP_DEF_INLINE_DATA_SIZE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NVMET_TCP_DEF_INLINE_DATA_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_11:
Lloh25:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w0, [x19, #16]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x24, _IPPROTO_TCP@GOTPAGE
Lloh29:
	ldr	x24, [x24, _IPPROTO_TCP@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x22, x19, #8
	mov	x3, x22
	bl	_sock_create
	cbz	w0, LBB0_13
; %bb.12:
	mov	x23, x0
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_23
LBB0_13:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	str	x19, [x8, #8]
	ldr	w9, [x8]
	str	w9, [x19, #20]
Lloh32:
	adrp	x9, _nvmet_tcp_listen_data_ready@GOTPAGE
Lloh33:
	ldr	x9, [x9, _nvmet_tcp_listen_data_ready@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	str	w9, [x8]
	mov	w8, #1
	str	w8, [sp, #28]
	ldr	w1, [x24]
Lloh35:
	adrp	x8, _TCP_NODELAY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TCP_NODELAY@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	w4, #4
	bl	_kernel_setsockopt
	cbz	w0, LBB0_15
; %bb.14:
	mov	x23, x0
	str	x23, [sp]
Lloh38:
	adrp	x0, l_.str.3@PAGE
Lloh39:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_22
LBB0_15:
	ldr	x0, [x22]
Lloh40:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	w4, #4
	bl	_kernel_setsockopt
	cbz	w0, LBB0_17
; %bb.16:
	mov	x23, x0
	str	x23, [sp]
Lloh46:
	adrp	x0, l_.str.4@PAGE
Lloh47:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_21
LBB0_17:
	ldr	x0, [x22]
	mov	x1, x21
	mov	w2, #4
	bl	_kernel_bind
	cbz	w0, LBB0_19
; %bb.18:
	mov	x23, x0
	str	x23, [sp]
Lloh48:
	adrp	x0, l_.str.5@PAGE
Lloh49:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_21
LBB0_19:
	ldr	x0, [x22]
	mov	w1, #128
	bl	_kernel_listen
	mov	x23, x0
	cbz	w0, LBB0_25
; %bb.20:
	str	x23, [sp]
Lloh50:
	adrp	x0, l_.str.6@PAGE
Lloh51:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_21:
	bl	_pr_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_22:
	ldr	x0, [x22]
	bl	_sock_release
LBB0_23:
	mov	x0, x19
	bl	_kfree
LBB0_24:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_25:
	str	x19, [x20, #24]
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	mov	x1, x0
Lloh52:
	adrp	x0, l_.str.7@PAGE
Lloh53:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x2, x21
	bl	_pr_info
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"address family %d not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_init_net,4,2                   ; @init_net
l_.str.1:                               ; @.str.1
	.asciz	"malformed ip/port passed: %s:%s\n"

	.comm	_nvmet_tcp_accept_work,4,2      ; @nvmet_tcp_accept_work
	.comm	_NVMET_TCP_DEF_INLINE_DATA_SIZE,8,3 ; @NVMET_TCP_DEF_INLINE_DATA_SIZE
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
l_.str.2:                               ; @.str.2
	.asciz	"failed to create a socket\n"

	.comm	_nvmet_tcp_listen_data_ready,4,2 ; @nvmet_tcp_listen_data_ready
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
l_.str.3:                               ; @.str.3
	.asciz	"failed to set TCP_NODELAY sock opt %d\n"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
l_.str.4:                               ; @.str.4
	.asciz	"failed to set SO_REUSEADDR sock opt %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to bind port socket %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to listen %d on port sock\n"

l_.str.7:                               ; @.str.7
	.asciz	"enabling port %d (%pISpc)\n"

	.no_dead_strip	_nvmet_tcp_add_port
.subsections_via_symbols
