	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_limits                  ## -- Begin function kernel_limits
	.p2align	4, 0x90
_kernel_limits:                         ## @kernel_limits
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	callq	_bzero
	movq	_CTL_ISCSI_LIMITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	-36(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
LBB0_2:
	movq	_ctl_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CTL_ISCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_4:
	movq	-64(%rbp), %rax
	movq	_CTL_ISCSI_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movl	-56(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_log_errx
LBB0_6:
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, (%r12)
	movl	%eax, (%r15)
LBB0_8:
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, (%r15)
LBB0_10:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, (%r14)
LBB0_12:
	movl	-40(%rbp), %r9d
	testl	%r9d, %r9d
	je	LBB0_13
## %bb.14:
	movl	%r9d, (%r13)
	jmp	LBB0_15
LBB0_13:
	movl	(%r13), %r9d
LBB0_15:
	movl	(%r14), %eax
	cmpl	%r9d, %eax
	jge	LBB0_17
## %bb.16:
	movl	%eax, (%r13)
	movl	%eax, %r9d
LBB0_17:
	movl	(%r12), %edx
	movl	(%r15), %ecx
	movl	(%r14), %r8d
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.18:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_log_debugx
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	movl	%r9d, %r8d
	xorl	%eax, %eax
	callq	_log_debugx
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_ISCSI_LIMITS,4,2           ## @CTL_ISCSI_LIMITS
	.comm	_ctl_fd,4,2                     ## @ctl_fd
	.comm	_CTL_ISCSI,4,2                  ## @CTL_ISCSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error issuing CTL_ISCSI ioctl; dropping connection"

	.comm	_CTL_ISCSI_OK,8,3               ## @CTL_ISCSI_OK
L_.str.1:                               ## @.str.1
	.asciz	"error returned from CTL iSCSI limits request: %s; dropping connection"

L_.str.2:                               ## @.str.2
	.asciz	"Kernel limits for offload \"%s\" are MaxRecvDataSegment=%d, max_send_dsl=%d, MaxBurstLength=%d, FirstBurstLength=%d"

L_.str.3:                               ## @.str.3
	.asciz	"Kernel limits are MaxRecvDataSegment=%d, max_send_dsl=%d, MaxBurstLength=%d, FirstBurstLength=%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_limits                  ; -- Begin function kernel_limits
	.p2align	2
_kernel_limits:                         ; @kernel_limits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	add	x0, sp, #40
	mov	w1, #24
	bl	_bzero
Lloh0:
	adrp	x8, _CTL_ISCSI_LIMITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_ISCSI_LIMITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
LBB0_2:
Lloh3:
	adrp	x8, _ctl_fd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ctl_fd@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _CTL_ISCSI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTL_ISCSI@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #40
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_4:
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, _CTL_ISCSI_OK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CTL_ISCSI_OK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	ldr	w2, [sp, #48]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_errx
LBB0_6:
	ldr	w8, [sp, #52]
	cbz	w8, LBB0_8
; %bb.7:
	str	w8, [x22]
	str	w8, [x21]
LBB0_8:
	ldr	w8, [sp, #56]
	cbz	w8, LBB0_10
; %bb.9:
	str	w8, [x21]
LBB0_10:
	ldr	w8, [sp, #60]
	cbz	w8, LBB0_12
; %bb.11:
	str	w8, [x20]
LBB0_12:
	ldr	w8, [sp, #64]
	cbz	w8, LBB0_14
; %bb.13:
	str	w8, [x23]
	b	LBB0_15
LBB0_14:
	ldr	w8, [x23]
LBB0_15:
	ldr	w9, [x20]
	cmp	w9, w8
	b.ge	LBB0_17
; %bb.16:
	str	w9, [x23]
	mov	x8, x9
LBB0_17:
	ldr	w9, [x22]
	ldr	w10, [x21]
	ldr	w11, [x20]
	cbz	x19, LBB0_19
; %bb.18:
	stp	x11, x8, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x19, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_19:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	stp	x11, x8, [sp, #16]
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x9, x10, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_20:
	bl	_log_debugx
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_ISCSI_LIMITS,4,2           ; @CTL_ISCSI_LIMITS
	.comm	_ctl_fd,4,2                     ; @ctl_fd
	.comm	_CTL_ISCSI,4,2                  ; @CTL_ISCSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error issuing CTL_ISCSI ioctl; dropping connection"

	.comm	_CTL_ISCSI_OK,8,3               ; @CTL_ISCSI_OK
l_.str.1:                               ; @.str.1
	.asciz	"error returned from CTL iSCSI limits request: %s; dropping connection"

l_.str.2:                               ; @.str.2
	.asciz	"Kernel limits for offload \"%s\" are MaxRecvDataSegment=%d, max_send_dsl=%d, MaxBurstLength=%d, FirstBurstLength=%d"

l_.str.3:                               ; @.str.3
	.asciz	"Kernel limits are MaxRecvDataSegment=%d, max_send_dsl=%d, MaxBurstLength=%d, FirstBurstLength=%d"

.subsections_via_symbols
