	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_flink_ioctl            ## -- Begin function drm_gem_flink_ioctl
	.p2align	4, 0x90
_drm_gem_flink_ioctl:                   ## @drm_gem_flink_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	8(%rdi), %rax
	movq	_DRIVER_GEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rsi), %eax
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movq	%rax, %r12
	leaq	4(%r14), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_idr_pre_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_spin_lock
	movq	(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_idr_get_new_above
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	%rax, (%r15)
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_5
## %bb.9:
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	callq	_drm_gem_object_reference
	jmp	LBB0_12
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_11:
	movq	%rax, (%r15)
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%r12, %rdi
	callq	_drm_gem_object_unreference_unlocked
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_GEM,4,2                 ## @DRIVER_GEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_flink_ioctl            ; -- Begin function drm_gem_flink_ioctl
	.p2align	2
_drm_gem_flink_ioctl:                   ; @drm_gem_flink_ioctl
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _DRIVER_GEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRIVER_GEM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x1, #8]
	mov	x1, x2
	mov	x2, x8
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	add	x22, x20, #4
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	adrp	x25, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x25, [x25, _EAGAIN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x22
	bl	_idr_pre_get
	cbz	x0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_spin_lock
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	w2, #1
	mov	x3, x19
	bl	_idr_get_new_above
	mov	x23, x0
	ldr	x8, [x19]
	str	x8, [x21]
	mov	x0, x20
	bl	_spin_unlock
	ldr	w8, [x25]
	cmn	w23, w8
	b.eq	LBB0_3
; %bb.6:
	cbnz	w23, LBB0_13
; %bb.7:
	mov	x0, x19
	bl	_drm_gem_object_reference
	b	LBB0_13
LBB0_8:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_11:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_12:
	str	x8, [x21]
	mov	x0, x20
	bl	_spin_unlock
	mov	w23, #0
LBB0_13:
	mov	x0, x19
	bl	_drm_gem_object_unreference_unlocked
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_GEM,4,2                 ; @DRIVER_GEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
