	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nx_of_update_msc
_nx_of_update_msc:                      ## @nx_of_update_msc
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rsi), %edi
	cmpq	$32, %rdi
	jae	LBB0_1
LBB0_32:
	movq	_NX_OF_FLAG_MAXSYNCCOP_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rsi), %r14
	movl	$32, %eax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %rcx
	movq	%rcx, %rax
	movq	%r13, %r14
	cmpq	%rdi, %rcx
	ja	LBB0_32
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	24(%r14), %r13
	movl	%eax, %ecx
	leaq	24(%rcx), %r12
	cmpq	%rdi, %r12
	ja	LBB0_31
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %rdx
	movq	16(%r14), %rcx
	movq	_NX_MAX_FC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_NX_MAX_MODE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r13), %rax
	movq	8(%r13), %r8
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	_NX_PAGE_SIZE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %r8
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	movl	16(%r13), %ebx
	cmpl	$191, %ebx
	jle	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$192, %ebx
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$256, %ebx                      ## imm = 0x100
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$512, %ebx                      ## imm = 0x200
	jne	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	%r8, 32(%rcx)
	movq	%rax, 40(%rcx)
	movq	%rdi, %rbx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	movq	%r8, %rcx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_30
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$128, %ebx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$160, %ebx
	jne	LBB0_29
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	%r8, (%rcx)
	movq	%rax, 8(%rcx)
	movq	%rdi, %rbx
	jmp	LBB0_30
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	%r8, 16(%rcx)
	movq	%rax, 24(%rcx)
	movq	%rdi, %rbx
	jmp	LBB0_30
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_NX_FC_AES@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	movq	%rdi, %rbx
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	%r8, 32(%rcx)
	movq	%rax, 40(%rcx)
	jmp	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_5 Depth=2
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %ecx
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_30
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_NX_FC_AES_HMAC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	_NX_FC_SHA@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_30
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	%r8, 16(%rcx)
	movq	%rax, 24(%rcx)
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %ecx
	leaq	24(%rcx), %rdx
	addq	$24, %r13
	cmpq	%rdi, %rdx
	ja	LBB0_31
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	incl	%r15d
	movq	%r12, %rax
	movq	%rdx, %r12
	cmpl	(%r14), %r15d
	jb	LBB0_5
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NX_MAX_FC,8,3                  ## @NX_MAX_FC
	.comm	_NX_MAX_MODE,8,3                ## @NX_MAX_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown function code/mode combo: %d/%d (ignored)\n"

	.comm	_NX_PAGE_SIZE,8,3               ## @NX_PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"bogus sglen/databytelen: %u/%u (ignored)\n"

	.comm	_NX_FC_AES,8,3                  ## @NX_FC_AES
	.comm	_NX_FC_AES_HMAC,8,3             ## @NX_FC_AES_HMAC
	.comm	_NX_FC_SHA,8,3                  ## @NX_FC_SHA
L_.str.2:                               ## @.str.2
	.asciz	"unknown function code/key bit len combo: (%u/256)\n"

L_.str.3:                               ## @.str.3
	.asciz	"unknown function code/key bit len combo: (%u/%u)\n"

	.comm	_NX_OF_FLAG_MAXSYNCCOP_SET,4,2  ## @NX_OF_FLAG_MAXSYNCCOP_SET
	.no_dead_strip	_nx_of_update_msc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nx_of_update_msc
_nx_of_update_msc:                      ; @nx_of_update_msc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	ldr	w25, [x1]
	cmp	w25, #32
	b.hs	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _NX_OF_FLAG_MAXSYNCCOP_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NX_OF_FLAG_MAXSYNCCOP_SET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x20, x0
	ldr	x23, [x1, #8]
	mov	w8, #32
Lloh3:
	adrp	x26, _NX_MAX_FC@GOTPAGE
Lloh4:
	ldr	x26, [x26, _NX_MAX_FC@GOTPAGEOFF]
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
Lloh7:
	adrp	x27, _NX_MAX_MODE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _NX_MAX_MODE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	x9, x8, #0xffffffff
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x9, #32
	mov	x23, x24
	cmp	x8, x25
	b.hi	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x24, [x23, #24]
	and	x9, x8, #0xffffffff
	add	x22, x9, #24
	cmp	x22, x25
	b.hi	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x23]
	cbz	w9, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w28, #0
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	ldp	x2, x3, [x23, #8]
	ldr	x9, [x27]
	cmp	x2, x8
	ccmp	x3, x9, #0, lt
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x20
	mov	x1, x21
	bl	_dev_err
	b	LBB0_26
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	ldp	x8, x9, [x24]
	cbz	x8, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh9:
	adrp	x10, _NX_PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NX_PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.lt	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w10, [x24, #16]
	cmp	w10, #191
	b.le	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w10, #192
	b.eq	LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w10, #256
	b.eq	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w10, #512
	b.eq	LBB0_22
	b	LBB0_23
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	str	x9, [sp]
	mov	x0, x20
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x8
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	bl	_dev_warn
	b	LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w10, #128
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w10, #160
	b.ne	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x19, #8]
	ldr	x10, [x10, x2, lsl #3]
	ldr	x10, [x10, x3, lsl #3]
	stp	x9, x8, [x10]
	b	LBB0_26
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh14:
	adrp	x10, _NX_FC_AES@GOTPAGE
Lloh15:
	ldr	x10, [x10, _NX_FC_AES@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x2, x10
	b.ne	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x19, #8]
	ldr	x10, [x10, x2, lsl #3]
	ldr	x10, [x10, x3, lsl #3]
	stp	x9, x8, [x10, #32]
	b	LBB0_26
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=2
	str	x10, [sp]
	mov	x0, x20
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_24:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh19:
	adrp	x10, _NX_FC_AES_HMAC@GOTPAGE
Lloh20:
	ldr	x10, [x10, _NX_FC_AES_HMAC@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
Lloh22:
	adrp	x11, _NX_FC_SHA@GOTPAGE
Lloh23:
	ldr	x11, [x11, _NX_FC_SHA@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	cmp	x2, x10
	ccmp	x2, x11, #4, ne
	b.ne	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x19, #8]
	ldr	x10, [x10, x2, lsl #3]
	ldr	x10, [x10, x3, lsl #3]
	stp	x9, x8, [x10, #16]
LBB0_26:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x24, x24, #24
	and	x9, x22, #0xffffffff
	add	x10, x9, #24
	cmp	x10, x25
	b.hi	LBB0_4
; %bb.27:                               ;   in Loop: Header=BB0_8 Depth=2
	add	w28, w28, #1
	ldr	w9, [x23]
	mov	x8, x22
	mov	x22, x10
	cmp	w28, w9
	b.lo	LBB0_8
	b	LBB0_3
LBB0_28:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x20
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NX_MAX_FC,8,3                  ; @NX_MAX_FC
	.comm	_NX_MAX_MODE,8,3                ; @NX_MAX_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown function code/mode combo: %d/%d (ignored)\n"

	.comm	_NX_PAGE_SIZE,8,3               ; @NX_PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"bogus sglen/databytelen: %u/%u (ignored)\n"

	.comm	_NX_FC_AES,8,3                  ; @NX_FC_AES
	.comm	_NX_FC_AES_HMAC,8,3             ; @NX_FC_AES_HMAC
	.comm	_NX_FC_SHA,8,3                  ; @NX_FC_SHA
l_.str.2:                               ; @.str.2
	.asciz	"unknown function code/key bit len combo: (%u/256)\n"

l_.str.3:                               ; @.str.3
	.asciz	"unknown function code/key bit len combo: (%u/%u)\n"

	.comm	_NX_OF_FLAG_MAXSYNCCOP_SET,4,2  ; @NX_OF_FLAG_MAXSYNCCOP_SET
	.no_dead_strip	_nx_of_update_msc
.subsections_via_symbols
