	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_cpmem_set_format_passthrough ## -- Begin function ipu_cpmem_set_format_passthrough
	.p2align	4, 0x90
_ipu_cpmem_set_format_passthrough:      ## @ipu_cpmem_set_format_passthrough
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	addl	$-8, %esi
	roll	$29, %esi
	cmpl	$4, %esi
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movslq	%esi, %rax
	leaq	l_switch.table.ipu_cpmem_set_format_passthrough(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	L_switch.table.ipu_cpmem_set_format_passthrough.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	movq	_IPU_FIELD_BPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ipu_ch_param_write_field
	movq	_IPU_FIELD_NPB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ipu_ch_param_write_field
	movq	_IPU_FIELD_PFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_ipu_ch_param_write_field
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPU_FIELD_BPP,4,2              ## @IPU_FIELD_BPP
	.comm	_IPU_FIELD_NPB,4,2              ## @IPU_FIELD_NPB
	.comm	_IPU_FIELD_PFS,4,2              ## @IPU_FIELD_PFS
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ipu_cpmem_set_format_passthrough
l_switch.table.ipu_cpmem_set_format_passthrough:
	.long	5                               ## 0x5
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.long	0                               ## 0x0

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.ipu_cpmem_set_format_passthrough.1
L_switch.table.ipu_cpmem_set_format_passthrough.1:
	.long	63                              ## 0x3f
	.long	31                              ## 0x1f
	.long	19                              ## 0x13
	.long	15                              ## 0xf

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_cpmem_set_format_passthrough ; -- Begin function ipu_cpmem_set_format_passthrough
	.p2align	2
_ipu_cpmem_set_format_passthrough:      ; @ipu_cpmem_set_format_passthrough
	.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
	sub	w8, w1, #8
	ror	w8, w8, #3
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x0
	sbfiz	x8, x8, #2, #32
Lloh0:
	adrp	x9, l_switch.table.ipu_cpmem_set_format_passthrough@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ipu_cpmem_set_format_passthrough@PAGEOFF
	ldr	w2, [x9, x8]
Lloh2:
	adrp	x9, l_switch.table.ipu_cpmem_set_format_passthrough.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.ipu_cpmem_set_format_passthrough.1@PAGEOFF
	ldr	w20, [x9, x8]
Lloh4:
	adrp	x8, _IPU_FIELD_BPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IPU_FIELD_BPP@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_ipu_ch_param_write_field
Lloh7:
	adrp	x8, _IPU_FIELD_NPB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IPU_FIELD_NPB@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ipu_ch_param_write_field
Lloh10:
	adrp	x8, _IPU_FIELD_PFS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPU_FIELD_PFS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #6
	bl	_ipu_ch_param_write_field
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPU_FIELD_BPP,4,2              ; @IPU_FIELD_BPP
	.comm	_IPU_FIELD_NPB,4,2              ; @IPU_FIELD_NPB
	.comm	_IPU_FIELD_PFS,4,2              ; @IPU_FIELD_PFS
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ipu_cpmem_set_format_passthrough
l_switch.table.ipu_cpmem_set_format_passthrough:
	.long	5                               ; 0x5
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	0                               ; 0x0

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.ipu_cpmem_set_format_passthrough.1
l_switch.table.ipu_cpmem_set_format_passthrough.1:
	.long	63                              ; 0x3f
	.long	31                              ; 0x1f
	.long	19                              ; 0x13
	.long	15                              ; 0xf

.subsections_via_symbols
