	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mgt_set_request                ## -- Begin function mgt_set_request
	.p2align	4, 0x90
_mgt_set_request:                       ## @mgt_set_request
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	$0, -72(%rbp)
	movq	_OID_NUM_LAST@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setbe	%dil
	callq	_BUG_ON
	movq	_isl_oid@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%ebx, %r12d
	leaq	(%r12,%r12,2), %rbx
	xorl	%edi, %edi
	cmpl	%r15d, (%rax,%rbx,8)
	setl	%dil
	callq	_BUG_ON
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movl	4(%rax,%rbx,8), %edx
	movq	(%rcx,%r12,8), %rcx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	imull	%r15d, %edx
	testq	%rcx, %rcx
	movslq	%edx, %r14
	cmoveq	%rcx, %r14
	addq	%rcx, %r14
	movq	%rbx, %r12
	movslq	%r15d, %r13
	addq	16(%rax,%rbx,8), %r13
	movq	%r14, %rcx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	_OID_FLAG_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	8(%rax,%r12,8), %edi
	movq	%rbx, %rsi
	callq	_mgt_cpu_to_le
	movq	%rbx, %rcx
LBB0_4:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_5
## %bb.7:
	movq	%rbx, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_down_write
	movq	%rbx, %rdi
	movq	%r15, %rbx
	callq	_islpci_get_state
	movq	_PRV_STATE_READY@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jge	LBB0_8
	jmp	LBB0_12
LBB0_1:
	movl	$-1, %r15d
	jmp	LBB0_18
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_islpci_get_state
	movq	_PRV_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_16
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	_PIMFOR_OP_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %r9
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_islpci_mgt_transaction
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	-72(%rbp), %rdi
	movq	(%rdi), %rax
	movq	%rbx, %r13
	movl	(%rax), %ebx
	callq	_islpci_mgt_release
	movq	_PIMFOR_OP_ERROR@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	(%rax), %ebx
	movq	%r13, %rbx
	jne	LBB0_11
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	testq	%r14, %r14
	je	LBB0_16
LBB0_12:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.13:
	testl	%r15d, %r15d
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_up_write
LBB0_16:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.17:
	movq	_isl_oid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OID_FLAG_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	8(%rax,%r12,8), %edi
	movq	%rbx, %rsi
	callq	_mgt_le_to_cpu
LBB0_18:
	movl	%r15d, %eax
	addq	$40, %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_request                ; -- Begin function mgt_set_request
	.p2align	2
_mgt_set_request:                       ; @mgt_set_request
	.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, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #8]
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	x25, _isl_oid@GOTPAGE
Lloh4:
	ldr	x25, [x25, _isl_oid@GOTPAGEOFF]
	ldr	x8, [x25]
	mov	w9, #24
	umull	x9, w21, w9
	ldr	w8, [x8, x9]
	cmp	w8, w24
	cset	w0, lt
	bl	_BUG_ON
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_6
; %bb.1:
	mov	w26, w21
	ldr	x8, [x25]
	mov	w10, #24
	madd	x10, x26, x10, x8
	ldr	w21, [x10, #4]
	ldr	x9, [x9, x26, lsl #3]
	mul	w11, w21, w24
	sxtw	x11, w11
	cmp	x9, #0
	csel	x11, xzr, x11, eq
	add	x22, x9, x11
	ldr	x28, [x10, #16]
Lloh5:
	adrp	x27, _OID_FLAG_TYPE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _OID_FLAG_TYPE@GOTPAGEOFF]
	mov	x23, x22
	cbz	x19, LBB0_3
; %bb.2:
	mov	w9, #24
	madd	x8, x26, x9, x8
	ldr	w8, [x8, #8]
	ldr	w9, [x27]
	and	w0, w9, w8
	mov	x1, x19
	bl	_mgt_cpu_to_le
	mov	x23, x19
LBB0_3:
	mov	x0, x20
	cbz	x22, LBB0_7
; %bb.4:
	bl	_down_write
	mov	x0, x20
	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.ge	LBB0_9
; %bb.5:
	mov	w24, #0
	b	LBB0_12
LBB0_6:
	mov	w24, #-1
	b	LBB0_18
LBB0_7:
	bl	_islpci_get_state
Lloh10:
	adrp	x8, _PRV_STATE_READY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PRV_STATE_READY@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_9:
	add	x2, x28, w24, sxtw
	ldr	w0, [x20, #4]
Lloh16:
	adrp	x8, _PIMFOR_OP_SET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PIMFOR_OP_SET@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x5, sp, #8
	mov	x3, x23
	mov	x4, x21
	bl	_islpci_mgt_transaction
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	w24, [x8]
	bl	_islpci_mgt_release
Lloh19:
	adrp	x8, _PIMFOR_OP_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PIMFOR_OP_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_19
LBB0_11:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w24, w8
	cbz	x22, LBB0_16
LBB0_12:
	cbz	x19, LBB0_15
; %bb.13:
	cbnz	w24, LBB0_15
; %bb.14:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
LBB0_15:
	mov	x0, x20
	bl	_up_write
LBB0_16:
	cbz	x19, LBB0_18
; %bb.17:
	ldr	x8, [x25]
	mov	w9, #24
	madd	x8, x26, x9, x8
	ldr	w8, [x8, #8]
	ldr	w9, [x27]
	and	w0, w9, w8
	mov	x1, x19
	bl	_mgt_le_to_cpu
LBB0_18:
	mov	x0, x24
	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_19:
	mov	w24, #0
	cbnz	x22, LBB0_12
	b	LBB0_16
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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
