	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_lso_format_cfg ## -- Begin function rvu_mbox_handler_nix_lso_format_cfg
	.p2align	4, 0x90
_rvu_mbox_handler_nix_lso_format_cfg:   ## @rvu_mbox_handler_nix_lso_format_cfg
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	12(%rsi), %r14d
	movl	%r14d, %esi
	callq	_rvu_get_pfvf
	movq	%rax, %r13
	movq	_BLKTYPE_NIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rvu_get_blkaddr
	cmpl	$0, (%r13)
	je	LBB0_13
## %bb.1:
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movl	(%r15), %edi
	movl	%r12d, %esi
	callq	_get_nix_hw
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movl	(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_15
## %bb.4:
	movq	_NIX_LSO_FIELD_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	$0, %r13d
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_NIX_AF_LSO_FORMATX_FIELDX
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_rvu_read64
	movq	(%rbx), %rcx
	andl	8(%rbx), %eax
	cmpl	%eax, (%rcx,%r13,4)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%r13
	movq	_NIX_LSO_FIELD_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_NIX_LSO_FIELD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ecx, %r13d
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	movl	(%rax), %edi
	cmpl	%edi, %r14d
	jl	LBB0_5
## %bb.16:
	cmpl	%edi, %r14d
	jge	LBB0_19
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
LBB0_25:
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_13:
	movq	_NIX_AF_ERR_AF_LF_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_26
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_26
LBB0_15:
	xorl	%r14d, %r14d
	cmpl	%edi, %r14d
	jl	LBB0_17
LBB0_19:
	cmpl	4(%rax), %edi
	jne	LBB0_21
## %bb.20:
	movq	_NIX_AF_ERR_LSO_CFG_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_26
LBB0_18:
	movl	(%rax), %edi
	cmpl	%edi, %r14d
	jl	LBB0_17
	jmp	LBB0_19
LBB0_21:
	leal	1(%rdi), %ecx
	movl	%ecx, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%edi, (%rax)
	movq	_NIX_LSO_FIELD_MAX@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_25
## %bb.22:
	xorl	%r14d, %r14d
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_NIX_AF_LSO_FORMATX_FIELDX
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	cmpl	$2, (%r13)
	jl	LBB0_26
## %bb.23:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_NIX_AF_LSO_FORMATX_FIELDX
	movq	(%rbx), %rcx
	movl	(%rcx,%r13,4), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	incq	%r13
	movq	_NIX_LSO_FIELD_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_24
LBB0_26:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLKTYPE_NIX,4,2                ## @BLKTYPE_NIX
	.comm	_NIX_AF_ERR_AF_LF_INVALID,4,2   ## @NIX_AF_ERR_AF_LF_INVALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NIX_LSO_FIELD_MAX,4,2          ## @NIX_LSO_FIELD_MAX
	.comm	_NIX_AF_ERR_LSO_CFG_FAIL,4,2    ## @NIX_AF_ERR_LSO_CFG_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_lso_format_cfg ; -- Begin function rvu_mbox_handler_nix_lso_format_cfg
	.p2align	2
_rvu_mbox_handler_nix_lso_format_cfg:   ; @rvu_mbox_handler_nix_lso_format_cfg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x1, #12]
	mov	x1, x22
	bl	_rvu_get_pfvf
	mov	x23, x0
Lloh0:
	adrp	x8, _BLKTYPE_NIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLKTYPE_NIX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_rvu_get_blkaddr
	ldr	w8, [x23]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x22, x0
	tbnz	w0, #31, LBB0_13
; %bb.2:
	ldr	w0, [x21]
	mov	x1, x22
	bl	_get_nix_hw
	cbz	x0, LBB0_14
; %bb.3:
	mov	x23, x0
	ldr	w0, [x0]
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.4:
	mov	w24, #0
Lloh3:
	adrp	x26, _NIX_LSO_FIELD_MAX@GOTPAGE
Lloh4:
	ldr	x26, [x26, _NIX_LSO_FIELD_MAX@GOTPAGEOFF]
	ldr	w8, [x26]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	x1, x25
	bl	_NIX_AF_LSO_FORMATX_FIELDX
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_rvu_read64
	ldr	x8, [x20]
	ldr	w8, [x8, x25, lsl #2]
	ldr	w9, [x20, #8]
	and	w9, w9, w0
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
	ldrsw	x8, [x26]
	cmp	x25, x8
	b.lt	LBB0_7
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w25, #0
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, w8
	b.ne	LBB0_12
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	cmp	w25, w8
	b.eq	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	ldr	w0, [x23]
	cmp	w24, w0
	b.lt	LBB0_5
	b	LBB0_16
LBB0_13:
Lloh5:
	adrp	x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_26
LBB0_14:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_26
LBB0_15:
	mov	w24, #0
LBB0_16:
	cmp	w24, w0
	b.ge	LBB0_19
LBB0_17:
	mov	w0, #0
	str	w24, [x19]
	b	LBB0_26
LBB0_18:
	ldr	w0, [x23]
	cmp	w24, w0
	b.lt	LBB0_17
LBB0_19:
	ldr	w8, [x23, #4]
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.20:
Lloh11:
	adrp	x8, _NIX_AF_ERR_LSO_CFG_FAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NIX_AF_ERR_LSO_CFG_FAIL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_26
LBB0_21:
	add	w8, w0, #1
	str	w8, [x23]
	str	w0, [x19]
Lloh14:
	adrp	x24, _NIX_LSO_FIELD_MAX@GOTPAGE
Lloh15:
	ldr	x24, [x24, _NIX_LSO_FIELD_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.22:
	mov	w1, #0
	bl	_NIX_AF_LSO_FORMATX_FIELDX
	mov	x2, x0
	ldr	x8, [x20]
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_rvu_write64
	mov	w0, #0
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_26
; %bb.23:
	mov	w23, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x23
	bl	_NIX_AF_LSO_FORMATX_FIELDX
	mov	x2, x0
	ldr	x8, [x20]
	ldr	w3, [x8, x23, lsl #2]
	mov	x0, x21
	mov	x1, x22
	bl	_rvu_write64
	mov	w0, #0
	add	x23, x23, #1
	ldrsw	x8, [x24]
	cmp	x23, x8
	b.lt	LBB0_24
	b	LBB0_26
LBB0_25:
	mov	w0, #0
LBB0_26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BLKTYPE_NIX,4,2                ; @BLKTYPE_NIX
	.comm	_NIX_AF_ERR_AF_LF_INVALID,4,2   ; @NIX_AF_ERR_AF_LF_INVALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NIX_LSO_FIELD_MAX,4,2          ; @NIX_LSO_FIELD_MAX
	.comm	_NIX_AF_ERR_LSO_CFG_FAIL,4,2    ; @NIX_AF_ERR_LSO_CFG_FAIL
.subsections_via_symbols
