	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_handler_lri
_cmd_handler_lri:                       ## @cmd_handler_lri
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_cmd_length
	movl	%eax, %r14d
	movq	8(%r12), %rax
	movq	(%rax), %r15
	movl	$1, %edi
	callq	_CMD_LEN
	cmpl	$127, %r14d
	jg	LBB0_15
## %bb.1:
	cmpl	%eax, %r14d
	jl	LBB0_15
## %bb.2:
	xorl	%eax, %eax
	cmpl	$2, %r14d
	jl	LBB0_14
## %bb.3:
	movl	$1, %ebx
	leaq	L_.str.1(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	_RCS0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_BCS0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cmd_reg
	movq	%rax, %r13
	movq	_DERRMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	cmpq	%rax, %r13
	leaq	L_.str.1(%rip), %r13
	je	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cmd_reg_inhibit
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_EBADRQC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cmd_reg
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_cmd_reg_handler
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %ebx
	cmpl	%r14d, %ebx
	jl	LBB0_4
## %bb.12:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_15:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_gvt_err
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	negl	%eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"len is not valid:  len=%u  valid_len=%u\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_RCS0,8,3                       ## @RCS0
	.comm	_BCS0,8,3                       ## @BCS0
	.comm	_DERRMR,4,2                     ## @DERRMR
	.comm	_EBADRQC,4,2                    ## @EBADRQC
L_.str.1:                               ## @.str.1
	.asciz	"lri"

	.comm	_MAX_VALID_LEN,4,2              ## @MAX_VALID_LEN
	.no_dead_strip	_cmd_handler_lri
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_handler_lri
_cmd_handler_lri:                       ; @cmd_handler_lri
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_cmd_length
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldr	x24, [x8]
	mov	w0, #1
	bl	_CMD_LEN
	mov	x2, x0
	cmp	w19, #127
	b.gt	LBB0_13
; %bb.1:
	cmp	w19, w2
	b.lt	LBB0_13
; %bb.2:
	cmp	w19, #2
	b.lt	LBB0_12
; %bb.3:
	mov	w21, #1
Lloh0:
	adrp	x25, _RCS0@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RCS0@GOTPAGEOFF]
Lloh2:
	adrp	x26, _BCS0@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BCS0@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh6:
	adrp	x27, _DERRMR@GOTPAGE
Lloh7:
	ldr	x27, [x27, _DERRMR@GOTPAGEOFF]
Lloh8:
	adrp	x28, _EBADRQC@GOTPAGE
Lloh9:
	ldr	x28, [x28, _EBADRQC@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_IS_BROADWELL
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_cmd_reg
	mov	x23, x0
	ldr	w0, [x27]
	bl	_i915_mmio_reg_offset
	cmp	x23, x0
	b.eq	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_cmd_reg_inhibit
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cbnz	w8, LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_cmd_reg
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_cmd_reg_handler
	cbnz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #2
	cmp	w21, w19
	b.lt	LBB0_4
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_gvt_err
Lloh12:
	adrp	x8, _EFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
LBB0_14:
	neg	w0, w8
LBB0_15:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"len is not valid:  len=%u  valid_len=%u\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_RCS0,8,3                       ; @RCS0
	.comm	_BCS0,8,3                       ; @BCS0
	.comm	_DERRMR,4,2                     ; @DERRMR
	.comm	_EBADRQC,4,2                    ; @EBADRQC
l_.str.1:                               ; @.str.1
	.asciz	"lri"

	.comm	_MAX_VALID_LEN,4,2              ; @MAX_VALID_LEN
	.no_dead_strip	_cmd_handler_lri
.subsections_via_symbols
