	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_handoff                 ## -- Begin function kernel_handoff
	.p2align	4, 0x90
_kernel_handoff:                        ## @kernel_handoff
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-120(%rbp), %rdi
	movl	$112, %esi
	callq	_bzero
	movq	_CTL_ISCSI_HANDOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %edi
	movq	96(%rbx), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	-28(%rbp), %edi
	movq	88(%rbx), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	80(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	-32(%rbp), %edi
	movl	$4, %edx
	callq	_strlcpy
LBB0_2:
	movl	-36(%rbp), %edi
	movl	72(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-40(%rbp), %edi
	movq	64(%rbx), %rax
	movq	(%rax), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	-44(%rbp), %edi
	movl	$4, %edx
	callq	_strlcpy
	movq	48(%rbx), %rax
	movq	(%rax), %rax
LBB0_4:
	movl	56(%rbx), %ecx
	movl	%ecx, -52(%rbp)
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_CONN_DIGEST_CRC32C@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_CTL_ISCSI_DIGEST_CRC32C@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)
LBB0_6:
	cmpq	%rax, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_CTL_ISCSI_DIGEST_CRC32C@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
LBB0_8:
	movl	40(%rbx), %eax
	movl	%eax, -80(%rbp)
	movl	36(%rbx), %eax
	movl	%eax, -84(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -88(%rbp)
	movups	16(%rbx), %xmm0
	movups	%xmm0, -104(%rbp)
	movq	_ctl_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CTL_ISCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-120(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_10:
	movq	-120(%rbp), %rax
	movq	_CTL_ISCSI_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movl	-112(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_log_errx
LBB0_12:
	addq	$120, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_ISCSI_HANDOFF,4,2          ## @CTL_ISCSI_HANDOFF
	.comm	_CONN_DIGEST_CRC32C,8,3         ## @CONN_DIGEST_CRC32C
	.comm	_CTL_ISCSI_DIGEST_CRC32C,8,3    ## @CTL_ISCSI_DIGEST_CRC32C
	.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 handoff request: %s; dropping connection"

	.comm	_proxy_mode,8,3                 ## @proxy_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_handoff                 ; -- Begin function kernel_handoff
	.p2align	2
_kernel_handoff:                        ; @kernel_handoff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, sp
	mov	w1, #112
	bl	_bzero
Lloh0:
	adrp	x8, _CTL_ISCSI_HANDOFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_ISCSI_HANDOFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #104]
	ldr	w0, [sp, #96]
	ldr	x1, [x19, #96]
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [sp, #92]
	ldr	x1, [x19, #88]
	mov	w2, #4
	bl	_strlcpy
	ldr	x1, [x19, #80]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [sp, #88]
	mov	w2, #4
	bl	_strlcpy
LBB0_2:
	ldr	w0, [sp, #84]
	ldr	w1, [x19, #72]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #80]
	ldr	x8, [x19, #64]
	ldr	x1, [x8]
	mov	w2, #4
	bl	_strlcpy
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	w0, [sp, #76]
	mov	w2, #4
	bl	_strlcpy
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
LBB0_4:
	ldr	w9, [x19, #56]
	str	w9, [sp, #68]
	ldr	w8, [x8]
	str	w8, [sp, #64]
	ldr	x9, [x19]
Lloh3:
	adrp	x8, _CONN_DIGEST_CRC32C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONN_DIGEST_CRC32C@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, _CTL_ISCSI_DIGEST_CRC32C@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CTL_ISCSI_DIGEST_CRC32C@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x9, [sp, #56]
LBB0_6:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _CTL_ISCSI_DIGEST_CRC32C@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTL_ISCSI_DIGEST_CRC32C@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp, #48]
LBB0_8:
	ldr	w8, [x19, #40]
	str	w8, [sp, #40]
	ldr	d0, [x19, #32]
	str	d0, [sp, #32]
	ldr	q0, [x19, #16]
	str	q0, [sp, #16]
Lloh12:
	adrp	x8, _ctl_fd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ctl_fd@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _CTL_ISCSI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CTL_ISCSI@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_10:
	ldr	x8, [sp]
Lloh20:
	adrp	x9, _CTL_ISCSI_OK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CTL_ISCSI_OK@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
	ldr	w2, [sp, #8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_errx
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_ISCSI_HANDOFF,4,2          ; @CTL_ISCSI_HANDOFF
	.comm	_CONN_DIGEST_CRC32C,8,3         ; @CONN_DIGEST_CRC32C
	.comm	_CTL_ISCSI_DIGEST_CRC32C,8,3    ; @CTL_ISCSI_DIGEST_CRC32C
	.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 handoff request: %s; dropping connection"

	.comm	_proxy_mode,8,3                 ; @proxy_mode
.subsections_via_symbols
