	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_getcap                     ## -- Begin function drm_getcap
	.p2align	4, 0x90
_drm_getcap:                            ## @drm_getcap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$0, (%rsi)
	movl	4(%rsi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	$1, (%rsi)
	jmp	LBB0_3
LBB0_4:
	movl	8(%rdi), %eax
	jmp	LBB0_13
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	popq	%rbp
	retq
LBB0_6:
	movq	_drm_timestamp_monotonic@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_7:
	movq	(%rdi), %rcx
	movl	4(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_DRM_PRIME_CAP_IMPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movl	%eax, (%rsi)
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.10:
	movq	_DRM_PRIME_CAP_EXPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_11:
	orl	%eax, %ecx
	movl	%ecx, (%rsi)
	jmp	LBB0_3
LBB0_12:
	movl	12(%rdi), %eax
LBB0_13:
	movl	%eax, (%rsi)
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_14:
	movq	(%rdi), %rcx
	xorl	%eax, %eax
	cmpl	$0, 8(%rcx)
	je	LBB0_16
## %bb.15:
	movl	$1, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_DRM_PRIME_CAP_IMPORT,4,2       ## @DRM_PRIME_CAP_IMPORT
	.comm	_DRM_PRIME_CAP_EXPORT,4,2       ## @DRM_PRIME_CAP_EXPORT
	.comm	_drm_timestamp_monotonic,4,2    ## @drm_timestamp_monotonic
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_getcap                     ; -- Begin function drm_getcap
	.p2align	2
_drm_getcap:                            ; @drm_getcap
	.cfi_startproc
; %bb.0:
	str	wzr, [x1]
	ldr	w9, [x1, #4]
	sub	w9, w9, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w0, #0
Lloh2:
	adrp	x8, _drm_timestamp_monotonic@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drm_timestamp_monotonic@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x1]
	ret
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	mov	w0, #0
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _DRM_PRIME_CAP_IMPORT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DRM_PRIME_CAP_IMPORT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldp	w8, w10, [x8]
	cmp	w10, #0
	csel	w9, wzr, w9, eq
Lloh11:
	adrp	x10, _DRM_PRIME_CAP_EXPORT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DRM_PRIME_CAP_EXPORT@GOTPAGEOFF]
	str	w9, [x1]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, #0
	csel	w8, wzr, w10, eq
	orr	w8, w8, w9
	str	w8, [x1]
	ret
LBB0_5:
	mov	w0, #0
	ldr	w8, [x8, #12]
	str	w8, [x1]
	ret
LBB0_6:
	mov	w0, #0
	ldr	w8, [x8, #8]
	str	w8, [x1]
	ret
LBB0_7:
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_9
LBB0_8:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x1]
	ret
LBB0_9:
	mov	w0, #0
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_DRM_PRIME_CAP_IMPORT,4,2       ; @DRM_PRIME_CAP_IMPORT
	.comm	_DRM_PRIME_CAP_EXPORT,4,2       ; @DRM_PRIME_CAP_EXPORT
	.comm	_drm_timestamp_monotonic,4,2    ; @drm_timestamp_monotonic
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
