	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_du_pipeline_set_rwpf_format
_vsp1_du_pipeline_set_rwpf_format:      ## @vsp1_du_pipeline_set_rwpf_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	%edx, %esi
	callq	_vsp1_get_format_info
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %ecx
	movl	$1, %esi
	cmpl	$3, %ecx
	jne	LBB0_4
## %bb.3:
	movl	4(%rax), %esi
LBB0_4:
	movq	%rax, 16(%r12)
	movl	%ecx, (%r12)
	movq	8(%r12), %rdi
	movl	%r14d, (%rdi)
	xorl	%ecx, %ecx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, 4(%rdi)
	jmp	LBB0_5
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_5:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported pixel format %08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vsp1_du_pipeline_set_rwpf_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_du_pipeline_set_rwpf_format
_vsp1_du_pipeline_set_rwpf_format:      ; @vsp1_du_pipeline_set_rwpf_format
	.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	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	x1, x2
	bl	_vsp1_get_format_info
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w9, [x0]
	cmp	w9, #3
	b.ne	LBB0_4
; %bb.2:
	ldr	w10, [x0, #4]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_6
LBB0_4:
	mov	w10, #1
LBB0_5:
	mov	w8, #0
	str	x0, [x20, #16]
	str	w9, [x20]
	ldr	x9, [x20, #8]
	udiv	w10, w19, w10
	stp	w19, w10, [x9]
LBB0_6:
	mov	x0, x8
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported pixel format %08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vsp1_du_pipeline_set_rwpf_format
.subsections_via_symbols
