	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jdi_panel_get_modes
_jdi_panel_get_modes:                   ## @jdi_panel_get_modes
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_jdi_panel
	movq	(%rax), %r14
	movl	8(%r15), %edi
	movq	_default_mode@GOTPCREL(%rip), %r12
	movq	%r12, %rsi
	callq	_drm_mode_duplicate
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_drm_mode_set_name
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_probed_add
	movq	(%r15), %rax
	movabsq	$648540061791, %rcx             ## imm = 0x970000005F
	movq	%rcx, (%rax)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movl	8(%r12), %edx
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_default_mode,12,2              ## @default_mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add mode %ux%ux@%u\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_jdi_panel_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function jdi_panel_get_modes
lCPI0_0:
	.long	95                              ; 0x5f
	.long	151                             ; 0x97
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_jdi_panel_get_modes:                   ; @jdi_panel_get_modes
	.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	x19, x0
	bl	_to_jdi_panel
	ldr	x20, [x0]
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x21, _default_mode@GOTPAGE
Lloh1:
	ldr	x21, [x21, _default_mode@GOTPAGEOFF]
	mov	x1, x21
	bl	_drm_mode_duplicate
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	bl	_drm_mode_set_name
	ldr	x0, [x19]
	mov	x1, x22
	bl	_drm_mode_probed_add
	ldr	x8, [x19]
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldp	w3, w2, [x21, #4]
	ldr	w4, [x21]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_default_mode,12,2              ; @default_mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add mode %ux%ux@%u\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_jdi_panel_get_modes
.subsections_via_symbols
