	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_ioctl_flags                ## -- Begin function drm_ioctl_flags
	.p2align	4, 0x90
_drm_ioctl_flags:                       ## @drm_ioctl_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_DRM_COMMAND_BASE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	ja	LBB0_2
## %bb.1:
	movq	_DRM_COMMAND_END@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	ja	LBB0_4
LBB0_2:
	movq	_DRM_CORE_IOCTL_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%edi, %esi
	jbe	LBB0_4
## %bb.3:
	callq	_array_index_nospec
	movq	_drm_ioctls@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%rbx)
	movl	$1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_COMMAND_BASE,4,2           ## @DRM_COMMAND_BASE
	.comm	_DRM_COMMAND_END,4,2            ## @DRM_COMMAND_END
	.comm	_DRM_CORE_IOCTL_COUNT,4,2       ## @DRM_CORE_IOCTL_COUNT
	.comm	_drm_ioctls,8,3                 ## @drm_ioctls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_ioctl_flags                ; -- Begin function drm_ioctl_flags
	.p2align	2
_drm_ioctl_flags:                       ; @drm_ioctl_flags
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _DRM_COMMAND_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_COMMAND_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRM_COMMAND_END@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_COMMAND_END@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #0, ls
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x1
Lloh6:
	adrp	x8, _DRM_CORE_IOCTL_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_CORE_IOCTL_COUNT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	cmp	w1, w0
	b.ls	LBB0_3
; %bb.2:
	bl	_array_index_nospec
Lloh9:
	adrp	x8, _drm_ioctls@GOTPAGE
Lloh10:
	ldr	x8, [x8, _drm_ioctls@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w8, [x8, w0, uxtw #2]
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_COMMAND_BASE,4,2           ; @DRM_COMMAND_BASE
	.comm	_DRM_COMMAND_END,4,2            ; @DRM_COMMAND_END
	.comm	_DRM_CORE_IOCTL_COUNT,4,2       ; @DRM_CORE_IOCTL_COUNT
	.comm	_drm_ioctls,8,3                 ; @drm_ioctls
.subsections_via_symbols
