	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_create_from_cmdline_mode ## -- Begin function drm_mode_create_from_cmdline_mode
	.p2align	4, 0x90
_drm_mode_create_from_cmdline_mode:     ## @drm_mode_create_from_cmdline_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	cmpq	$0, 32(%rsi)
	movl	(%rsi), %esi
	movl	24(%rbx), %edx
	movq	16(%rbx), %rax
	je	LBB0_5
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	4(%rbx), %ecx
	jmp	LBB0_4
LBB0_5:
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	4(%rbx), %ecx
	jmp	LBB0_8
LBB0_2:
	movl	$60, %ecx
LBB0_4:
	movl	28(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	12(%rbx), %r9d
	movl	%eax, (%rsp)
	callq	_drm_cvt_mode
	jmp	LBB0_9
LBB0_6:
	movl	$60, %ecx
LBB0_8:
	movl	8(%rbx), %r9d
	movl	12(%rbx), %r8d
	callq	_drm_gtf_mode
LBB0_9:
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	_DRM_MODE_TYPE_USERDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	cmpl	$1366, (%rbx)                   ## imm = 0x556
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_drm_mode_fixup_1366x768
LBB0_12:
	movq	_CRTC_INTERLACE_HALVE_V@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_mode_set_crtcinfo
LBB0_13:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_TYPE_USERDEF,4,2      ## @DRM_MODE_TYPE_USERDEF
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ## @CRTC_INTERLACE_HALVE_V
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_create_from_cmdline_mode ; -- Begin function drm_mode_create_from_cmdline_mode
	.p2align	2
_drm_mode_create_from_cmdline_mode:     ; @drm_mode_create_from_cmdline_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x9, [x1, #32]
	ldr	w1, [x1]
	ldr	w2, [x19, #24]
	ldr	x8, [x19, #16]
	cbz	x9, LBB0_3
; %bb.1:
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w3, [x19, #4]
	b	LBB0_6
LBB0_3:
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w3, [x19, #4]
	b	LBB0_8
LBB0_5:
	mov	w3, #60
LBB0_6:
	ldr	w4, [x19, #28]
	ldp	w6, w5, [x19, #8]
	bl	_drm_cvt_mode
	mov	x20, x0
	cbnz	x0, LBB0_9
	b	LBB0_12
LBB0_7:
	mov	w3, #60
LBB0_8:
	ldp	w5, w4, [x19, #8]
	bl	_drm_gtf_mode
	mov	x20, x0
	cbz	x0, LBB0_12
LBB0_9:
Lloh0:
	adrp	x8, _DRM_MODE_TYPE_USERDEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_TYPE_USERDEF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w8, [x19]
	cmp	w8, #1366
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_drm_mode_fixup_1366x768
LBB0_11:
Lloh3:
	adrp	x8, _CRTC_INTERLACE_HALVE_V@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRTC_INTERLACE_HALVE_V@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_mode_set_crtcinfo
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_TYPE_USERDEF,4,2      ; @DRM_MODE_TYPE_USERDEF
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ; @CRTC_INTERLACE_HALVE_V
.subsections_via_symbols
