	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kernel_modify_some
_kernel_modify_some:                    ## @kernel_modify_some
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	$1, %r12d
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %r13
	movq	_ISCSISLIST@GOTPCREL(%rip), %r14
	movq	_EMSGSIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(,%r12,8), %eax
	leal	(%rax,%rax,2), %esi
	movq	%rbx, %rdi
	callq	_realloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	leaq	L_.str(%rip), %rsi
	callq	_xo_err
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r12d, -104(%rbp)
	movq	%rbx, -88(%rbp)
	movl	(%r14), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shll	$2, %r12d
	cmpq	(%r15), %rax
	je	LBB0_1
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_xo_errx
LBB0_6:
	movl	-104(%rbp), %eax
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	leal	-1(%rax), %ecx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rbx,%rcx,8), %rdx
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	16(%rbp), %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%rbx)
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	addq	$24, %rbx
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.12:
	movq	%rdx, %rbx
	jmp	LBB0_13
LBB0_7:
	xorl	%ecx, %ecx
                                        ## implicit-def: $rbx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	16(%rbp), %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_8:
	cmpl	%eax, %ecx
	jne	LBB0_14
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_xo_errx
LBB0_14:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:
	movl	20(%rbx), %edi
	movl	$4, %edx
	callq	_strlcpy
LBB0_16:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:
	movl	16(%rbx), %edi
	movl	$4, %edx
	callq	_strlcpy
LBB0_18:
	testq	%r13, %r13
	je	LBB0_20
## %bb.19:
	movl	12(%rbx), %edi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_strlcpy
LBB0_20:
	testq	%r12, %r12
	je	LBB0_22
## %bb.21:
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_strlcpy
LBB0_22:
	addq	$4, %rbx
	movq	_ENABLE_ON@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	%r15d, (%rcx)
	je	LBB0_24
## %bb.23:
	movq	_ENABLE_OFF@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%r15d, (%rcx)
	jne	LBB0_25
LBB0_24:
	movl	%eax, (%rbx)
LBB0_25:
	leaq	-128(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r14d, -124(%rbp)
	leaq	-120(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_ISCSISMODIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.3(%rip), %rdi
	callq	_xo_warn
LBB0_27:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"realloc"

	.comm	_ISCSISLIST,4,2                 ## @ISCSISLIST
	.comm	_errno,8,3                      ## @errno
	.comm	_EMSGSIZE,8,3                   ## @EMSGSIZE
L_.str.1:                               ## @.str.1
	.asciz	"ISCSISLIST"

L_.str.2:                               ## @.str.2
	.asciz	"session-id %u not found"

	.comm	_ENABLE_ON,4,2                  ## @ENABLE_ON
	.comm	_ENABLE_OFF,4,2                 ## @ENABLE_OFF
	.comm	_ISCSISMODIFY,4,2               ## @ISCSISMODIFY
L_.str.3:                               ## @.str.3
	.asciz	"ISCSISMODIFY"

	.no_dead_strip	_kernel_modify_some
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kernel_modify_some
_kernel_modify_some:                    ; @kernel_modify_some
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w6, [sp, #28]                   ; 4-byte Folded Spill
	stp	x4, x5, [sp, #8]                ; 16-byte Folded Spill
	mov	x25, x3
	mov	x26, x2
	mov	x20, x1
	mov	x19, x0
	mov	x23, #0
	mov	w28, #1
Lloh0:
	adrp	x21, _ISCSISLIST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISCSISLIST@GOTPAGEOFF]
Lloh2:
	adrp	x22, _errno@GOTPAGE
Lloh3:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x24, _EMSGSIZE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _EMSGSIZE@GOTPAGEOFF]
Lloh6:
	adrp	x27, l_.str@PAGE
Lloh7:
	add	x27, x27, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w28, w28, lsl #1
	lsl	w1, w8, #3
	mov	x0, x23
	bl	_realloc
	mov	x23, x0
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	mov	x1, x27
	bl	_xo_err
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	w28, [sp, #56]
	str	x23, [sp, #72]
	ldr	w1, [x21]
	add	x2, sp, #56
	mov	x0, x19
	bl	_ioctl
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x24]
	lsl	w28, w28, #2
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_xo_errx
LBB0_6:
	ldr	w8, [sp, #56]
	cbz	w8, LBB0_11
; %bb.7:
	mov	x9, #0
	sub	w10, w8, #1
	mov	w11, #24
	umaddl	x10, w10, w11, x23
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x23]
	cmp	w11, w20
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	add	x23, x23, #24
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.10:
	mov	x23, x10
	b	LBB0_13
LBB0_11:
	mov	w9, #0
                                        ; implicit-def: $x23
LBB0_12:
	cmp	w9, w8
	b.ne	LBB0_14
LBB0_13:
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_xo_errx
LBB0_14:
	cbz	x26, LBB0_16
; %bb.15:
	ldr	w0, [x23, #20]
	mov	x1, x26
	mov	w2, #4
	bl	_strlcpy
LBB0_16:
	cbz	x25, LBB0_18
; %bb.17:
	ldr	w0, [x23, #16]
	mov	x1, x25
	mov	w2, #4
	bl	_strlcpy
LBB0_18:
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x1, LBB0_20
; %bb.19:
	ldr	w0, [x23, #12]
	mov	w2, #4
	bl	_strlcpy
LBB0_20:
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x1, LBB0_22
; %bb.21:
	ldr	w0, [x23, #8]
	mov	w2, #4
	bl	_strlcpy
LBB0_22:
	add	x22, x23, #4
Lloh12:
	adrp	x8, _ENABLE_ON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENABLE_ON@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.23:
	mov	w8, #1
	b	LBB0_26
LBB0_24:
Lloh15:
	adrp	x8, _ENABLE_OFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENABLE_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.25:
	mov	w8, #0
LBB0_26:
	str	w8, [x22]
LBB0_27:
	add	x21, sp, #32
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	w20, [sp, #36]
	add	x0, x21, #8
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
Lloh18:
	adrp	x8, _ISCSISMODIFY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ISCSISMODIFY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	bl	_ioctl
	cbz	w0, LBB0_29
; %bb.28:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_xo_warn
LBB0_29:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realloc"

	.comm	_ISCSISLIST,4,2                 ; @ISCSISLIST
	.comm	_errno,8,3                      ; @errno
	.comm	_EMSGSIZE,8,3                   ; @EMSGSIZE
l_.str.1:                               ; @.str.1
	.asciz	"ISCSISLIST"

l_.str.2:                               ; @.str.2
	.asciz	"session-id %u not found"

	.comm	_ENABLE_ON,4,2                  ; @ENABLE_ON
	.comm	_ENABLE_OFF,4,2                 ; @ENABLE_OFF
	.comm	_ISCSISMODIFY,4,2               ; @ISCSISMODIFY
l_.str.3:                               ; @.str.3
	.asciz	"ISCSISMODIFY"

	.no_dead_strip	_kernel_modify_some
.subsections_via_symbols
