	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_tcp_set_queue_sock
_nvmet_tcp_set_queue_sock:              ## @nvmet_tcp_set_queue_sock
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rbx
	movq	(%rbx), %rdi
	callq	_inet_sk
	movq	%rax, %r15
	movq	$1, -40(%rbp)
	leaq	16(%r14), %rsi
	movq	%rbx, %rdi
	callq	_kernel_getsockname
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	leaq	12(%r14), %rsi
	movq	%rbx, %rdi
	callq	_kernel_getpeername
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_LINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$8, %r8d
	callq	_kernel_setsockopt
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	movl	%eax, -28(%rbp)
	movq	_SOL_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IP_TOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$4, %r8d
	callq	_kernel_setsockopt
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	(%rbx), %rdi
	callq	_write_lock_bh
	movq	(%rbx), %rdi
	movq	%r14, 16(%rdi)
	movl	12(%rdi), %eax
	movl	%eax, 8(%r14)
	movq	_nvmet_tcp_data_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movl	8(%rdi), %eax
	movl	%eax, 4(%r14)
	movq	_nvmet_tcp_state_change@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movl	4(%rdi), %eax
	movl	%eax, (%r14)
	movq	_nvmet_tcp_write_space@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	callq	_write_unlock_bh
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_LINGER,4,2                  ## @SO_LINGER
	.comm	_SOL_IP,4,2                     ## @SOL_IP
	.comm	_IP_TOS,4,2                     ## @IP_TOS
	.comm	_nvmet_tcp_data_ready,4,2       ## @nvmet_tcp_data_ready
	.comm	_nvmet_tcp_state_change,4,2     ## @nvmet_tcp_state_change
	.comm	_nvmet_tcp_write_space,4,2      ## @nvmet_tcp_write_space
	.no_dead_strip	_nvmet_tcp_set_queue_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_tcp_set_queue_sock
_nvmet_tcp_set_queue_sock:              ; @nvmet_tcp_set_queue_sock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x20, [x0, #24]
	ldr	x0, [x20]
	bl	_inet_sk
	mov	x21, x0
	mov	w8, #1
	str	x8, [sp, #8]
	add	x1, x19, #16
	mov	x0, x20
	bl	_kernel_getsockname
	tbnz	w0, #31, LBB0_6
; %bb.1:
	add	x1, x19, #12
	mov	x0, x20
	bl	_kernel_getpeername
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SO_LINGER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SO_LINGER@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	w4, #8
	bl	_kernel_setsockopt
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	str	w8, [sp, #4]
Lloh6:
	adrp	x8, _SOL_IP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOL_IP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _IP_TOS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IP_TOS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	x0, x20
	mov	w4, #4
	bl	_kernel_setsockopt
	cbnz	w0, LBB0_6
LBB0_5:
	ldr	x0, [x20]
	bl	_write_lock_bh
	ldr	x0, [x20]
	str	x19, [x0, #16]
	ldr	w8, [x0, #12]
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, _nvmet_tcp_data_ready@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nvmet_tcp_data_ready@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _nvmet_tcp_state_change@GOTPAGE
Lloh16:
	ldr	x9, [x9, _nvmet_tcp_state_change@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldur	d0, [x0, #4]
	stp	w9, w8, [x0, #8]
	str	d0, [x19]
Lloh18:
	adrp	x8, _nvmet_tcp_write_space@GOTPAGE
Lloh19:
	ldr	x8, [x8, _nvmet_tcp_write_space@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	bl	_write_unlock_bh
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_LINGER,4,2                  ; @SO_LINGER
	.comm	_SOL_IP,4,2                     ; @SOL_IP
	.comm	_IP_TOS,4,2                     ; @IP_TOS
	.comm	_nvmet_tcp_data_ready,4,2       ; @nvmet_tcp_data_ready
	.comm	_nvmet_tcp_state_change,4,2     ; @nvmet_tcp_state_change
	.comm	_nvmet_tcp_write_space,4,2      ; @nvmet_tcp_write_space
	.no_dead_strip	_nvmet_tcp_set_queue_sock
.subsections_via_symbols
