	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mgt_set_varlen                 ## -- Begin function mgt_set_varlen
	.p2align	4, 0x90
_mgt_set_varlen:                        ## @mgt_set_varlen
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_OID_NUM_LAST@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setbe	%dil
	callq	_BUG_ON
	movq	_isl_oid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,2), %r14
	movl	(%rax,%r14,4), %ebx
	movl	8(%rax,%r14,4), %r13d
	movq	_OID_FLAG_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	4(%rax,%r14,4), %edi
	movq	%r15, %rsi
	callq	_mgt_cpu_to_le
	movq	%r12, %rdi
	callq	_islpci_get_state
	movq	_PRV_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	movq	_PIMFOR_OP_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	leaq	-56(%rbp), %r9
	movl	%r13d, %edx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	callq	_islpci_mgt_transaction
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %r12d
	callq	_islpci_mgt_release
	movq	_PIMFOR_OP_ERROR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	(%rax), %r12d
	jne	LBB0_4
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	_isl_oid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OID_FLAG_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	4(%rax,%r14,4), %edi
	movq	%r15, %rsi
	callq	_mgt_le_to_cpu
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIMFOR_OP_ERROR,4,2            ## @PIMFOR_OP_ERROR
	.comm	_OID_NUM_LAST,4,2               ## @OID_NUM_LAST
	.comm	_isl_oid,8,3                    ## @isl_oid
	.comm	_OID_FLAG_TYPE,4,2              ## @OID_FLAG_TYPE
	.comm	_PRV_STATE_READY,8,3            ## @PRV_STATE_READY
	.comm	_PIMFOR_OP_SET,4,2              ## @PIMFOR_OP_SET
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mgt_set_varlen                 ; -- Begin function mgt_set_varlen
	.p2align	2
_mgt_set_varlen:                        ; @mgt_set_varlen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _OID_NUM_LAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OID_NUM_LAST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, ls
	bl	_BUG_ON
Lloh3:
	adrp	x24, _isl_oid@GOTPAGE
Lloh4:
	ldr	x24, [x24, _isl_oid@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w9, #12
	umaddl	x8, w20, w9, x8
	ldr	w26, [x8]
	ldp	w8, w23, [x8, #4]
Lloh5:
	adrp	x25, _OID_FLAG_TYPE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _OID_FLAG_TYPE@GOTPAGEOFF]
	ldr	w9, [x25]
	and	w0, w9, w8
	mov	x1, x19
	bl	_mgt_cpu_to_le
	mov	x0, x22
	bl	_islpci_get_state
Lloh7:
	adrp	x8, _PRV_STATE_READY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PRV_STATE_READY@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.1:
	ldr	w0, [x22]
Lloh10:
	adrp	x8, _PIMFOR_OP_SET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PIMFOR_OP_SET@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	w4, w26, w21
	add	x5, sp, #8
	mov	x2, x23
	mov	x3, x19
	bl	_islpci_mgt_transaction
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	w21, [x8]
	bl	_islpci_mgt_release
Lloh13:
	adrp	x8, _PIMFOR_OP_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PIMFOR_OP_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_6
LBB0_3:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	cbz	x19, LBB0_5
LBB0_4:
	mov	w8, w20
	ldr	x9, [x24]
	mov	w10, #12
	madd	x8, x8, x10, x9
	ldr	w8, [x8, #4]
	ldr	w9, [x25]
	and	w0, w9, w8
	mov	x1, x19
	bl	_mgt_le_to_cpu
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	mov	w21, #0
	cbnz	x19, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PIMFOR_OP_ERROR,4,2            ; @PIMFOR_OP_ERROR
	.comm	_OID_NUM_LAST,4,2               ; @OID_NUM_LAST
	.comm	_isl_oid,8,3                    ; @isl_oid
	.comm	_OID_FLAG_TYPE,4,2              ; @OID_FLAG_TYPE
	.comm	_PRV_STATE_READY,8,3            ; @PRV_STATE_READY
	.comm	_PIMFOR_OP_SET,4,2              ; @PIMFOR_OP_SET
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
