	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_cpmem_set_fmt              ## -- Begin function ipu_cpmem_set_fmt
	.p2align	4, 0x90
_ipu_cpmem_set_fmt:                     ## @ipu_cpmem_set_fmt
	.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
	movl	%esi, %r15d
	leal	-128(%r15), %eax
	cmpl	$32, %eax
	ja	LBB0_27
## %bb.1:
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:
	movq	_def_rgbx_32@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_17:
	movq	_def_bgrx_32@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_8:
	movq	_IPU_FIELD_PFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_7:
	movq	_IPU_FIELD_PFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	jmp	LBB0_3
LBB0_2:
	movq	_IPU_FIELD_PFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	jmp	LBB0_3
LBB0_15:
	movq	_def_xrgb_32@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	movq	_def_xbgr_32@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_19:
	movq	_def_rgb_24@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_20:
	movq	_def_rgb_16@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_18:
	movq	_def_bgr_24@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_21:
	movq	_def_bgr_16@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_12:
	movq	_IPU_FIELD_BPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_ipu_ch_param_write_field
	movq	_IPU_FIELD_PFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	jmp	LBB0_3
LBB0_11:
	movq	_IPU_FIELD_BPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_ipu_ch_param_write_field
	movq	_IPU_FIELD_PFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$10, %edx
	jmp	LBB0_3
LBB0_24:
	movq	_def_rgba_16@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_10:
	movq	_IPU_FIELD_PFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	jmp	LBB0_3
LBB0_9:
	movq	_IPU_FIELD_PFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
LBB0_3:
	callq	_ipu_ch_param_write_field
	movq	_IPU_FIELD_NPB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$31, %edx
	callq	_ipu_ch_param_write_field
	jmp	LBB0_4
LBB0_25:
	movq	_def_bgra_16@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_26:
	movq	_def_argb_16_4444@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_22:
	movq	_def_argb_16@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_23:
	movq	_def_abgr_16@GOTPCREL(%rip), %rsi
LBB0_14:
	movq	%r14, %rdi
	callq	_ipu_cpmem_set_format_rgb
LBB0_4:
	addl	$-138, %r15d
	rorl	%r15d
	xorl	%ebx, %ebx
	cmpl	$8, %r15d
	ja	LBB0_28
## %bb.5:
	movl	$429, %eax                      ## imm = 0x1AD
	btl	%r15d, %eax
	jae	LBB0_28
## %bb.6:
	movq	_IPU_FIELD_WID3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_ipu_ch_param_write_field
	movq	%r14, %rdi
	callq	_ipu_cpmem_set_separate_alpha
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_24
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_20
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_25
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_15
	.long	L0_0_set_26
	.long	L0_0_set_22
	.long	L0_0_set_13
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_IPU_FIELD_PFS,4,2              ## @IPU_FIELD_PFS
	.comm	_IPU_FIELD_NPB,4,2              ## @IPU_FIELD_NPB
	.comm	_IPU_FIELD_BPP,4,2              ## @IPU_FIELD_BPP
	.comm	_def_xbgr_32,4,2                ## @def_xbgr_32
	.comm	_def_xrgb_32,4,2                ## @def_xrgb_32
	.comm	_def_rgbx_32,4,2                ## @def_rgbx_32
	.comm	_def_bgrx_32,4,2                ## @def_bgrx_32
	.comm	_def_bgr_24,4,2                 ## @def_bgr_24
	.comm	_def_rgb_24,4,2                 ## @def_rgb_24
	.comm	_def_rgb_16,4,2                 ## @def_rgb_16
	.comm	_def_bgr_16,4,2                 ## @def_bgr_16
	.comm	_def_argb_16,4,2                ## @def_argb_16
	.comm	_def_abgr_16,4,2                ## @def_abgr_16
	.comm	_def_rgba_16,4,2                ## @def_rgba_16
	.comm	_def_bgra_16,4,2                ## @def_bgra_16
	.comm	_def_argb_16_4444,4,2           ## @def_argb_16_4444
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPU_FIELD_WID3,4,2             ## @IPU_FIELD_WID3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_cpmem_set_fmt              ; -- Begin function ipu_cpmem_set_fmt
	.p2align	2
_ipu_cpmem_set_fmt:                     ; @ipu_cpmem_set_fmt
	.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, #128
	cmp	w8, #32
	b.hi	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x1, _def_rgbx_32@GOTPAGE
Lloh3:
	ldr	x1, [x1, _def_rgbx_32@GOTPAGEOFF]
	b	LBB0_24
LBB0_3:
Lloh4:
	adrp	x1, _def_bgrx_32@GOTPAGE
Lloh5:
	ldr	x1, [x1, _def_bgrx_32@GOTPAGEOFF]
	b	LBB0_24
LBB0_4:
Lloh6:
	adrp	x8, _IPU_FIELD_PFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPU_FIELD_PFS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_19
LBB0_5:
Lloh9:
	adrp	x8, _IPU_FIELD_PFS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPU_FIELD_PFS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	b	LBB0_19
LBB0_6:
Lloh12:
	adrp	x8, _IPU_FIELD_PFS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPU_FIELD_PFS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	b	LBB0_19
LBB0_7:
Lloh15:
	adrp	x1, _def_xrgb_32@GOTPAGE
Lloh16:
	ldr	x1, [x1, _def_xrgb_32@GOTPAGEOFF]
	b	LBB0_24
LBB0_8:
Lloh17:
	adrp	x1, _def_xbgr_32@GOTPAGE
Lloh18:
	ldr	x1, [x1, _def_xbgr_32@GOTPAGEOFF]
	b	LBB0_24
LBB0_9:
Lloh19:
	adrp	x1, _def_rgb_24@GOTPAGE
Lloh20:
	ldr	x1, [x1, _def_rgb_24@GOTPAGEOFF]
	b	LBB0_24
LBB0_10:
Lloh21:
	adrp	x1, _def_rgb_16@GOTPAGE
Lloh22:
	ldr	x1, [x1, _def_rgb_16@GOTPAGEOFF]
	b	LBB0_24
LBB0_11:
Lloh23:
	adrp	x1, _def_bgr_24@GOTPAGE
Lloh24:
	ldr	x1, [x1, _def_bgr_24@GOTPAGEOFF]
	b	LBB0_24
LBB0_12:
Lloh25:
	adrp	x1, _def_bgr_16@GOTPAGE
Lloh26:
	ldr	x1, [x1, _def_bgr_16@GOTPAGEOFF]
	b	LBB0_24
LBB0_13:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_28
LBB0_14:
Lloh30:
	adrp	x8, _IPU_FIELD_BPP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IPU_FIELD_BPP@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	_ipu_ch_param_write_field
Lloh33:
	adrp	x8, _IPU_FIELD_PFS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IPU_FIELD_PFS@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	b	LBB0_19
LBB0_15:
Lloh36:
	adrp	x8, _IPU_FIELD_BPP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IPU_FIELD_BPP@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	_ipu_ch_param_write_field
Lloh39:
	adrp	x8, _IPU_FIELD_PFS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IPU_FIELD_PFS@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #10
	b	LBB0_19
LBB0_16:
Lloh42:
	adrp	x1, _def_rgba_16@GOTPAGE
Lloh43:
	ldr	x1, [x1, _def_rgba_16@GOTPAGEOFF]
	b	LBB0_24
LBB0_17:
Lloh44:
	adrp	x8, _IPU_FIELD_PFS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IPU_FIELD_PFS@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	b	LBB0_19
LBB0_18:
Lloh47:
	adrp	x8, _IPU_FIELD_PFS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IPU_FIELD_PFS@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
LBB0_19:
	bl	_ipu_ch_param_write_field
Lloh50:
	adrp	x8, _IPU_FIELD_NPB@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IPU_FIELD_NPB@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #31
	bl	_ipu_ch_param_write_field
	b	LBB0_25
LBB0_20:
Lloh53:
	adrp	x1, _def_bgra_16@GOTPAGE
Lloh54:
	ldr	x1, [x1, _def_bgra_16@GOTPAGEOFF]
	b	LBB0_24
LBB0_21:
Lloh55:
	adrp	x1, _def_argb_16_4444@GOTPAGE
Lloh56:
	ldr	x1, [x1, _def_argb_16_4444@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
Lloh57:
	adrp	x1, _def_argb_16@GOTPAGE
Lloh58:
	ldr	x1, [x1, _def_argb_16@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh59:
	adrp	x1, _def_abgr_16@GOTPAGE
Lloh60:
	ldr	x1, [x1, _def_abgr_16@GOTPAGEOFF]
LBB0_24:
	mov	x0, x19
	bl	_ipu_cpmem_set_format_rgb
LBB0_25:
	mov	w0, #0
	sub	w8, w20, #138
	ror	w8, w8, #1
	cmp	w8, #8
	b.hi	LBB0_28
; %bb.26:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #429
	tst	w8, w9
	b.eq	LBB0_28
; %bb.27:
Lloh61:
	adrp	x8, _IPU_FIELD_WID3@GOTPAGE
Lloh62:
	ldr	x8, [x8, _IPU_FIELD_WID3@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #7
	bl	_ipu_ch_param_write_field
	mov	x0, x19
	bl	_ipu_cpmem_set_separate_alpha
	mov	w0, #0
LBB0_28:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
                                        ; -- End function
	.comm	_IPU_FIELD_PFS,4,2              ; @IPU_FIELD_PFS
	.comm	_IPU_FIELD_NPB,4,2              ; @IPU_FIELD_NPB
	.comm	_IPU_FIELD_BPP,4,2              ; @IPU_FIELD_BPP
	.comm	_def_xbgr_32,4,2                ; @def_xbgr_32
	.comm	_def_xrgb_32,4,2                ; @def_xrgb_32
	.comm	_def_rgbx_32,4,2                ; @def_rgbx_32
	.comm	_def_bgrx_32,4,2                ; @def_bgrx_32
	.comm	_def_bgr_24,4,2                 ; @def_bgr_24
	.comm	_def_rgb_24,4,2                 ; @def_rgb_24
	.comm	_def_rgb_16,4,2                 ; @def_rgb_16
	.comm	_def_bgr_16,4,2                 ; @def_bgr_16
	.comm	_def_argb_16,4,2                ; @def_argb_16
	.comm	_def_abgr_16,4,2                ; @def_abgr_16
	.comm	_def_rgba_16,4,2                ; @def_rgba_16
	.comm	_def_bgra_16,4,2                ; @def_bgra_16
	.comm	_def_argb_16_4444,4,2           ; @def_argb_16_4444
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPU_FIELD_WID3,4,2             ; @IPU_FIELD_WID3
.subsections_via_symbols
