	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_reg_read_ioctl            ## -- Begin function i915_reg_read_ioctl
	.p2align	4, 0x90
_i915_reg_read_ioctl:                   ## @i915_reg_read_ioctl
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_whitelist@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jg	LBB0_1
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	addq	$16, %r13
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_INTEL_INFO
	movl	8(%r13), %ecx
	movl	(%rax), %eax
	btl	%eax, %ecx
	jae	LBB0_3
LBB0_4:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_5
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_5:
	movl	12(%r13), %eax
	decl	%eax
	cmpl	$7, %eax
	ja	LBB0_12
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	(%r14), %rdi
	callq	_I915_READ8
	jmp	LBB0_8
LBB0_10:
	movq	(%r14), %rdi
	callq	_I915_READ16
	jmp	LBB0_8
LBB0_12:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_13
LBB0_9:
	movq	(%r14), %rdi
	callq	_I915_READ
	jmp	LBB0_8
LBB0_7:
	movq	(%r14), %rdi
	callq	_I915_READ64
LBB0_8:
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_whitelist,8,3                  ## @whitelist
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_reg_read_ioctl            ; -- Begin function i915_reg_read_ioctl
	.p2align	2
_i915_reg_read_ioctl:                   ; @i915_reg_read_ioctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _whitelist@GOTPAGE
Lloh1:
	ldr	x22, [x22, _whitelist@GOTPAGEOFF]
	ldr	x20, [x22]
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	add	x20, x20, #16
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	ldr	w9, [x20, #8]
	lsr	w8, w9, w8
	tbz	w8, #0, LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w23, #0
LBB0_6:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ne	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_8:
	ldr	w8, [x20, #12]
	sub	w8, w8, #1
	cmp	w8, #7
	b.hi	LBB0_12
; %bb.9:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	ldr	x0, [x19]
	bl	_I915_READ8
	b	LBB0_15
LBB0_11:
	ldr	x0, [x19]
	bl	_I915_READ16
	b	LBB0_15
LBB0_12:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_7
LBB0_13:
	ldr	x0, [x19]
	bl	_I915_READ
	b	LBB0_15
LBB0_14:
	ldr	x0, [x19]
	bl	_I915_READ64
LBB0_15:
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
                                        ; -- End function
	.comm	_whitelist,8,3                  ; @whitelist
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
