	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zr36016_set_video
_zr36016_set_video:                     ## @zr36016_set_video
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movl	32(%r15), %edx
	movl	(%rsi), %ecx
	movq	8(%rsi), %r8
	movl	16(%rbx), %r9d
	movl	24(%rbx), %r10d
	movl	20(%rbx), %r11d
	movl	(%rbx), %eax
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	8(%rbx)
	callq	_dprintk
	addq	$32, %rsp
	movl	24(%rbx), %eax
	movl	%eax, 28(%r15)
	movl	20(%rbx), %eax
	movl	%eax, 24(%r15)
	movl	(%r14), %eax
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movslq	16(%rbx), %rax
	movslq	%ecx, %rcx
	addq	%rax, %rcx
	movq	%rcx, 16(%r15)
	movq	8(%rbx), %rax
	addq	8(%r14), %rax
	movq	%rax, 8(%r15)
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	cmpb	$1, %al
	setne	%cl
	movl	%ecx, (%r15)
	andl	$65280, %eax                    ## imm = 0xFF00
	xorl	%ecx, %ecx
	cmpl	$256, %eax                      ## imm = 0x100
	setne	%cl
	movl	%ecx, 4(%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: set_video %d.%d, %d/%d-%dx%d (0x%x) call\n"

	.no_dead_strip	_zr36016_set_video
.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 zr36016_set_video
lCPI0_0:
	.long	1                               ; 0x1
	.long	256                             ; 0x100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_zr36016_set_video:                     ; @zr36016_set_video
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	w2, [x21, #32]
	ldr	w3, [x1]
	ldr	x4, [x1, #8]
	ldr	x6, [x19, #8]
	ldp	w8, w7, [x19, #20]
	ldr	w5, [x19, #16]
	ldr	w9, [x19]
	stp	w8, w9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	ldur	d0, [x19, #20]
	str	d0, [x21, #24]
	ldr	w8, [x20]
	cmp	w8, #0
	csinc	w8, w8, wzr, ne
	ldrsw	x9, [x19, #16]
	add	x8, x9, w8, sxtw
	ldr	x9, [x20, #8]
	ldr	x10, [x19, #8]
	add	x9, x10, x9
	stp	x9, x8, [x21, #8]
	ld1r.2s	{ v0 }, [x19]
	movi	d1, #0x00ff00000000ff
	and.8b	v0, v0, v1
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	cmeq.2s	v0, v0, v1
	movi.2s	v1, #1
	bic.8b	v0, v1, v0
	str	d0, [x21]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: set_video %d.%d, %d/%d-%dx%d (0x%x) call\n"

	.no_dead_strip	_zr36016_set_video
.subsections_via_symbols
