	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_prime_handle_to_fd_ioctl   ## -- Begin function drm_prime_handle_to_fd_ioctl
	.p2align	4, 0x90
_drm_prime_handle_to_fd_ioctl:          ## @drm_prime_handle_to_fd_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r8
	movl	(%rsi), %ecx
	movq	_DRM_CLOEXEC@GOTPCREL(%rip), %r9
	movq	_DRM_RDWR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%r9), %esi
	notl	%esi
	testl	%esi, %ecx
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movl	8(%r8), %r9d
	addq	$4, %r8
	movq	%rdx, %rsi
	movl	%r9d, %edx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_DRM_CLOEXEC,4,2                ## @DRM_CLOEXEC
	.comm	_DRM_RDWR,4,2                   ## @DRM_RDWR
	.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_prime_handle_to_fd_ioctl   ; -- Begin function drm_prime_handle_to_fd_ioctl
	.p2align	2
_drm_prime_handle_to_fd_ioctl:          ; @drm_prime_handle_to_fd_ioctl
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x5, [x8]
	cbz	x5, LBB0_3
; %bb.1:
	ldr	w3, [x1]
Lloh0:
	adrp	x8, _DRM_CLOEXEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_CLOEXEC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRM_RDWR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_RDWR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w3, w8
	b.eq	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	ldr	w8, [x1, #8]
	add	x4, x1, #4
	mov	x1, x2
	mov	x2, x8
	br	x5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_DRM_CLOEXEC,4,2                ; @DRM_CLOEXEC
	.comm	_DRM_RDWR,4,2                   ; @DRM_RDWR
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
