	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpdma_set_max_size             ## -- Begin function vpdma_set_max_size
	.p2align	4, 0x90
_vpdma_set_max_size:                    ## @vpdma_set_max_size
	.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	%rcx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_VPDMA_MAX_SIZE1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VPDMA_MAX_SIZE2@GOTPCREL(%rip), %rcx
	movq	_VPDMA_MAX_SIZE3@GOTPCREL(%rip), %rsi
	cmpl	%ebx, (%rsi)
	movl	%eax, %esi
	cmovel	%ebx, %esi
	cmpl	%ebx, (%rcx)
	cmovel	%ebx, %esi
	cmpl	%ebx, %eax
	cmovnel	%esi, %ebx
	decq	%rdx
	movq	_VPDMA_MAX_SIZE_WIDTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VPDMA_MAX_SIZE_WIDTH_SHFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, %esi
	callq	_write_field_reg
	decq	%r14
	movq	_VPDMA_MAX_SIZE_HEIGHT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VPDMA_MAX_SIZE_HEIGHT_SHFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_field_reg                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VPDMA_MAX_SIZE1,4,2            ## @VPDMA_MAX_SIZE1
	.comm	_VPDMA_MAX_SIZE2,4,2            ## @VPDMA_MAX_SIZE2
	.comm	_VPDMA_MAX_SIZE3,4,2            ## @VPDMA_MAX_SIZE3
	.comm	_VPDMA_MAX_SIZE_WIDTH_MASK,4,2  ## @VPDMA_MAX_SIZE_WIDTH_MASK
	.comm	_VPDMA_MAX_SIZE_WIDTH_SHFT,4,2  ## @VPDMA_MAX_SIZE_WIDTH_SHFT
	.comm	_VPDMA_MAX_SIZE_HEIGHT_MASK,4,2 ## @VPDMA_MAX_SIZE_HEIGHT_MASK
	.comm	_VPDMA_MAX_SIZE_HEIGHT_SHFT,4,2 ## @VPDMA_MAX_SIZE_HEIGHT_SHFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpdma_set_max_size             ; -- Begin function vpdma_set_max_size
	.p2align	2
_vpdma_set_max_size:                    ; @vpdma_set_max_size
	.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, x3
	mov	x20, x0
Lloh0:
	adrp	x8, _VPDMA_MAX_SIZE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPDMA_MAX_SIZE1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VPDMA_MAX_SIZE2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VPDMA_MAX_SIZE2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _VPDMA_MAX_SIZE3@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VPDMA_MAX_SIZE3@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, w1
	ccmp	w9, w1, #4, ne
	ccmp	w8, w1, #4, ne
	csel	w21, w1, w8, eq
	sub	x2, x2, #1
Lloh9:
	adrp	x8, _VPDMA_MAX_SIZE_WIDTH_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VPDMA_MAX_SIZE_WIDTH_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _VPDMA_MAX_SIZE_WIDTH_SHFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VPDMA_MAX_SIZE_WIDTH_SHFT@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x1, x21
	bl	_write_field_reg
	sub	x2, x19, #1
Lloh15:
	adrp	x8, _VPDMA_MAX_SIZE_HEIGHT_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VPDMA_MAX_SIZE_HEIGHT_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x8, _VPDMA_MAX_SIZE_HEIGHT_SHFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VPDMA_MAX_SIZE_HEIGHT_SHFT@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	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
	b	_write_field_reg
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VPDMA_MAX_SIZE1,4,2            ; @VPDMA_MAX_SIZE1
	.comm	_VPDMA_MAX_SIZE2,4,2            ; @VPDMA_MAX_SIZE2
	.comm	_VPDMA_MAX_SIZE3,4,2            ; @VPDMA_MAX_SIZE3
	.comm	_VPDMA_MAX_SIZE_WIDTH_MASK,4,2  ; @VPDMA_MAX_SIZE_WIDTH_MASK
	.comm	_VPDMA_MAX_SIZE_WIDTH_SHFT,4,2  ; @VPDMA_MAX_SIZE_WIDTH_SHFT
	.comm	_VPDMA_MAX_SIZE_HEIGHT_MASK,4,2 ; @VPDMA_MAX_SIZE_HEIGHT_MASK
	.comm	_VPDMA_MAX_SIZE_HEIGHT_SHFT,4,2 ; @VPDMA_MAX_SIZE_HEIGHT_SHFT
.subsections_via_symbols
