	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_syncobj_get_fd             ## -- Begin function drm_syncobj_get_fd
	.p2align	4, 0x90
_drm_syncobj_get_fd:                    ## @drm_syncobj_get_fd
	.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	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_unused_fd_flags
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	_drm_syncobj_file_fops@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_anon_inode_getfile
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	%ebx, %edi
	callq	_put_unused_fd
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	%ebx, %r12d
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_drm_syncobj_get
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_fd_install
	movl	%ebx, (%r14)
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syncobj_file"

	.comm	_drm_syncobj_file_fops,4,2      ## @drm_syncobj_file_fops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_syncobj_get_fd             ; -- Begin function drm_syncobj_get_fd
	.p2align	2
_drm_syncobj_get_fd:                    ; @drm_syncobj_get_fd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _O_CLOEXEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_CLOEXEC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_unused_fd_flags
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x1, _drm_syncobj_file_fops@GOTPAGE
Lloh6:
	ldr	x1, [x1, _drm_syncobj_file_fops@GOTPAGEOFF]
	mov	x2, x21
	mov	w3, #0
	bl	_anon_inode_getfile
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_put_unused_fd
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	mov	x0, x21
	bl	_drm_syncobj_get
	mov	x0, x19
	mov	x1, x22
	bl	_fd_install
	str	w19, [x20]
	mov	w19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syncobj_file"

	.comm	_drm_syncobj_file_fops,4,2      ; @drm_syncobj_file_fops
.subsections_via_symbols
