	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rad_panel_get_modes
_rad_panel_get_modes:                   ## @rad_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
	movq	(%rdi), %r14
	movl	12(%rdi), %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	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_probed_add
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	_rad_bus_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_rad_bus_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_drm_display_info_set_bus_formats
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movl	8(%r15), %edi
	movl	8(%r12), %edx
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_ERROR
	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
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ## @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
	.comm	_rad_bus_flags,4,2              ## @rad_bus_flags
	.comm	_rad_bus_formats,4,2            ## @rad_bus_formats
	.no_dead_strip	_rad_panel_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rad_panel_get_modes
_rad_panel_get_modes:                   ; @rad_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	x20, x0
	ldr	x19, [x0]
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x22, _default_mode@GOTPAGE
Lloh1:
	ldr	x22, [x22, _default_mode@GOTPAGEOFF]
	mov	x1, x22
	bl	_drm_mode_duplicate
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	bl	_drm_mode_set_name
Lloh2:
	adrp	x8, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	x0, [x20]
	mov	x1, x21
	bl	_drm_mode_probed_add
	ldur	d0, [x21, #4]
Lloh8:
	adrp	x8, _rad_bus_flags@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rad_bus_flags@GOTPAGEOFF]
	stur	d0, [x19, #4]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh11:
	adrp	x8, _rad_bus_formats@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rad_bus_formats@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_drm_display_info_set_bus_formats
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20, #8]
	ldp	w3, w2, [x22, #4]
	ldr	w4, [x22]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.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
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ; @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
	.comm	_rad_bus_flags,4,2              ; @rad_bus_flags
	.comm	_rad_bus_formats,4,2            ; @rad_bus_formats
	.no_dead_strip	_rad_panel_get_modes
.subsections_via_symbols
