	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_video_format
_get_video_format:                      ## @get_video_format
	.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
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$2, %edi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	$0, (%r15)
	jne	LBB0_10
## %bb.1:
	cmpl	$18, %r12d
	jl	LBB0_10
## %bb.2:
	addl	$-10, %r12d
	movl	$7, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %r12
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx,%rax,4)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 4(%rbx,%rax,4)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, 8(%rbx,%rax,4)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$179, 12(%rbx,%rax,4)
	jne	LBB0_9
## %bb.7:
	movl	16(%rbx,%rax,4), %r12d
	movl	20(%rbx,%rax,4), %r13d
	movl	24(%rbx,%rax,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	28(%rbx,%rax,4), %ebx
	andl	$15, %ebx
	movq	_sw2mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_av7110_set_vidmode
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	%r13d, %ecx
	andl	$15, %ecx
	shll	$8, %ecx
	orl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	shrl	$4, %r13d
	andl	$15, %r13d
	shll	$4, %r12d
	orl	%r13d, %r12d
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$2, %edi
	movl	%r12d, %edx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movl	$1, (%r15)
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"av7110:%p, \n"

	.comm	_sw2mode,8,3                    ## @sw2mode
L_.str.1:                               ## @.str.1
	.asciz	"playback %dx%d fr=%d\n"

	.no_dead_strip	_get_video_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_video_format
_get_video_format:                      ; @get_video_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	ldr	w8, [x19]
	cmp	w8, #0
	ccmp	w21, #18, #8, eq
	b.ge	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	sub	w8, w21, #10
	sub	x9, x8, #7
	add	x8, x20, #56
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #4
	subs	x9, x9, #1
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x8, #-28]
	cbnz	w10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w10, [x8, #-24]
	cbnz	w10, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w10, [x8, #-20]
	cmp	w10, #1
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w10, [x8, #-16]
	cmp	w10, #179
	b.ne	LBB0_4
; %bb.9:
	ldp	w21, w20, [x8, #-12]
	ldp	w23, w8, [x8, #-4]
	and	x22, x8, #0xf
Lloh2:
	adrp	x8, _sw2mode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sw2mode@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_av7110_set_vidmode
	cbnz	w0, LBB0_2
; %bb.10:
	ubfiz	w8, w20, #8, #4
	orr	w8, w8, w23
	lsl	w9, w21, #4
	bfxil	w9, w20, #4, #4
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x8, x22, [sp, #8]
	str	x9, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"av7110:%p, \n"

	.comm	_sw2mode,8,3                    ; @sw2mode
l_.str.1:                               ; @.str.1
	.asciz	"playback %dx%d fr=%d\n"

	.no_dead_strip	_get_video_format
.subsections_via_symbols
