	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimd_win_set_pixfmt
_fimd_win_set_pixfmt:                   ## @fimd_win_set_pixfmt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	%esi, %ecx
	movl	(%rax,%rcx,4), %edi
	callq	_to_exynos_plane_state
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	movq	_WINCONx_ENWIN@GOTPCREL(%rip), %rsi
	cmpq	$0, 8(%rcx)
	jne	LBB0_1
## %bb.2:
	movq	_DRM_MODE_BLEND_PIXEL_NONE@GOTPCREL(%rip), %r8
	jmp	LBB0_3
LBB0_1:
	leaq	4(%rax), %r8
LBB0_3:
	movq	(%r14), %rbx
	cmpl	$132, %edx
	movl	$128, %edi
	cmovnel	%edx, %edi
	cmpq	$0, (%rbx)
	movl	(%rsi), %ebx
	cmovel	%edx, %edi
	testl	%r12d, %r12d
	cmovnel	%edx, %edi
	addl	$-128, %edi
	cmpl	$3, %edi
	ja	LBB0_4
## %bb.5:
	movslq	%edi, %rdx
	leaq	l_switch.table.fimd_win_set_pixfmt(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdi
	leaq	l_switch.table.fimd_win_set_pixfmt.1(%rip), %rsi
	movq	(%rsi,%rdx,8), %rsi
	leaq	l_switch.table.fimd_win_set_pixfmt.2(%rip), %rcx
	movq	(%rcx,%rdx,8), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	_WINCONx_BURSTLEN_16WORD@GOTPCREL(%rip), %rdx
	movq	_WINCONx_WSWP@GOTPCREL(%rip), %rsi
	movq	_WINCON1_BPPMODE_25BPP_A1888@GOTPCREL(%rip), %rdi
LBB0_6:
	orl	(%rdi), %ebx
	orl	(%rsi), %ebx
	orl	(%rdx), %ebx
	movq	_MIN_FB_WIDTH_FOR_16WORD_BURST@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jle	LBB0_8
## %bb.7:
	movq	_WINCONx_BURSTLEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %ebx
	movq	_WINCONx_BURSTLEN_4WORD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
LBB0_8:
	movl	(%rax), %r15d
	movl	(%r8), %r13d
	movl	%r12d, %edi
	callq	_WINCON
	movq	_WINCONx_BLEND_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	callq	_fimd_set_bits
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_fimd_win_set_bldmod
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fimd_win_set_bldeq             ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINCONx_ENWIN,4,2              ## @WINCONx_ENWIN
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,4,2  ## @DRM_MODE_BLEND_PIXEL_NONE
	.comm	_WINCON0_BPPMODE_8BPP_PALETTE,4,2 ## @WINCON0_BPPMODE_8BPP_PALETTE
	.comm	_WINCONx_BURSTLEN_8WORD,4,2     ## @WINCONx_BURSTLEN_8WORD
	.comm	_WINCONx_BYTSWP,4,2             ## @WINCONx_BYTSWP
	.comm	_WINCON0_BPPMODE_16BPP_1555,4,2 ## @WINCON0_BPPMODE_16BPP_1555
	.comm	_WINCONx_HAWSWP,4,2             ## @WINCONx_HAWSWP
	.comm	_WINCONx_BURSTLEN_16WORD,4,2    ## @WINCONx_BURSTLEN_16WORD
	.comm	_WINCON0_BPPMODE_16BPP_565,4,2  ## @WINCON0_BPPMODE_16BPP_565
	.comm	_WINCON0_BPPMODE_24BPP_888,4,2  ## @WINCON0_BPPMODE_24BPP_888
	.comm	_WINCONx_WSWP,4,2               ## @WINCONx_WSWP
	.comm	_WINCON1_BPPMODE_25BPP_A1888,4,2 ## @WINCON1_BPPMODE_25BPP_A1888
	.comm	_MIN_FB_WIDTH_FOR_16WORD_BURST,4,2 ## @MIN_FB_WIDTH_FOR_16WORD_BURST
	.comm	_WINCONx_BURSTLEN_MASK,4,2      ## @WINCONx_BURSTLEN_MASK
	.comm	_WINCONx_BURSTLEN_4WORD,4,2     ## @WINCONx_BURSTLEN_4WORD
	.comm	_WINCONx_BLEND_MODE_MASK,4,2    ## @WINCONx_BLEND_MODE_MASK
	.no_dead_strip	_fimd_win_set_pixfmt
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.fimd_win_set_pixfmt
l_switch.table.fimd_win_set_pixfmt:
	.quad	_WINCON0_BPPMODE_24BPP_888
	.quad	_WINCON0_BPPMODE_16BPP_1555
	.quad	_WINCON0_BPPMODE_16BPP_565
	.quad	_WINCON0_BPPMODE_8BPP_PALETTE

	.p2align	3                               ## @switch.table.fimd_win_set_pixfmt.1
l_switch.table.fimd_win_set_pixfmt.1:
	.quad	_WINCONx_WSWP
	.quad	_WINCONx_HAWSWP
	.quad	_WINCONx_HAWSWP
	.quad	_WINCONx_BURSTLEN_8WORD

	.p2align	3                               ## @switch.table.fimd_win_set_pixfmt.2
l_switch.table.fimd_win_set_pixfmt.2:
	.quad	_WINCONx_BURSTLEN_16WORD
	.quad	_WINCONx_BURSTLEN_16WORD
	.quad	_WINCONx_BURSTLEN_16WORD
	.quad	_WINCONx_BYTSWP

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimd_win_set_pixfmt
_fimd_win_set_pixfmt:                   ; @fimd_win_set_pixfmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, w1, uxtw #2]
	bl	_to_exynos_plane_state
	ldr	x8, [x21]
	ldr	w10, [x8]
	ldr	w21, [x0], #4
Lloh0:
	adrp	x9, _WINCONx_ENWIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINCONx_ENWIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x11, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x11, x0, eq
	ldr	x11, [x20]
	ldr	x11, [x11]
	mov	w12, #128
	cmp	w10, #132
	csel	w12, w12, w10, eq
	cmp	x11, #0
	ccmp	w19, #0, #0, ne
	csel	w10, w10, w12, ne
	sub	w10, w10, #128
	cmp	w10, #3
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x10, x10, #3, #32
Lloh5:
	adrp	x11, l_switch.table.fimd_win_set_pixfmt@PAGE
Lloh6:
	add	x11, x11, l_switch.table.fimd_win_set_pixfmt@PAGEOFF
	ldr	x12, [x11, x10]
Lloh7:
	adrp	x11, l_switch.table.fimd_win_set_pixfmt.1@PAGE
Lloh8:
	add	x11, x11, l_switch.table.fimd_win_set_pixfmt.1@PAGEOFF
	ldr	x11, [x11, x10]
Lloh9:
	adrp	x13, l_switch.table.fimd_win_set_pixfmt.2@PAGE
Lloh10:
	add	x13, x13, l_switch.table.fimd_win_set_pixfmt.2@PAGEOFF
	ldr	x10, [x13, x10]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x10, _WINCONx_BURSTLEN_16WORD@GOTPAGE
Lloh12:
	ldr	x10, [x10, _WINCONx_BURSTLEN_16WORD@GOTPAGEOFF]
Lloh13:
	adrp	x11, _WINCONx_WSWP@GOTPAGE
Lloh14:
	ldr	x11, [x11, _WINCONx_WSWP@GOTPAGEOFF]
Lloh15:
	adrp	x12, _WINCON1_BPPMODE_25BPP_A1888@GOTPAGE
Lloh16:
	ldr	x12, [x12, _WINCON1_BPPMODE_25BPP_A1888@GOTPAGEOFF]
LBB0_3:
	ldr	w12, [x12]
	orr	w9, w12, w9
	ldr	w11, [x11]
	orr	w9, w9, w11
	ldr	w10, [x10]
	orr	w23, w9, w10
Lloh17:
	adrp	x9, _MIN_FB_WIDTH_FOR_16WORD_BURST@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MIN_FB_WIDTH_FOR_16WORD_BURST@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w9, w22
	b.le	LBB0_5
; %bb.4:
Lloh20:
	adrp	x9, _WINCONx_BURSTLEN_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WINCONx_BURSTLEN_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bic	w9, w23, w9
Lloh23:
	adrp	x10, _WINCONx_BURSTLEN_4WORD@GOTPAGE
Lloh24:
	ldr	x10, [x10, _WINCONx_BURSTLEN_4WORD@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w23, w9, w10
LBB0_5:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_WINCON
	mov	x1, x0
Lloh26:
	adrp	x8, _WINCONx_BLEND_MODE_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WINCONx_BLEND_MODE_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x20
	mov	x3, x23
	bl	_fimd_set_bits
	cbz	w19, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_fimd_win_set_bldmod
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fimd_win_set_bldeq
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_WINCONx_ENWIN,4,2              ; @WINCONx_ENWIN
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,4,2  ; @DRM_MODE_BLEND_PIXEL_NONE
	.comm	_WINCON0_BPPMODE_8BPP_PALETTE,4,2 ; @WINCON0_BPPMODE_8BPP_PALETTE
	.comm	_WINCONx_BURSTLEN_8WORD,4,2     ; @WINCONx_BURSTLEN_8WORD
	.comm	_WINCONx_BYTSWP,4,2             ; @WINCONx_BYTSWP
	.comm	_WINCON0_BPPMODE_16BPP_1555,4,2 ; @WINCON0_BPPMODE_16BPP_1555
	.comm	_WINCONx_HAWSWP,4,2             ; @WINCONx_HAWSWP
	.comm	_WINCONx_BURSTLEN_16WORD,4,2    ; @WINCONx_BURSTLEN_16WORD
	.comm	_WINCON0_BPPMODE_16BPP_565,4,2  ; @WINCON0_BPPMODE_16BPP_565
	.comm	_WINCON0_BPPMODE_24BPP_888,4,2  ; @WINCON0_BPPMODE_24BPP_888
	.comm	_WINCONx_WSWP,4,2               ; @WINCONx_WSWP
	.comm	_WINCON1_BPPMODE_25BPP_A1888,4,2 ; @WINCON1_BPPMODE_25BPP_A1888
	.comm	_MIN_FB_WIDTH_FOR_16WORD_BURST,4,2 ; @MIN_FB_WIDTH_FOR_16WORD_BURST
	.comm	_WINCONx_BURSTLEN_MASK,4,2      ; @WINCONx_BURSTLEN_MASK
	.comm	_WINCONx_BURSTLEN_4WORD,4,2     ; @WINCONx_BURSTLEN_4WORD
	.comm	_WINCONx_BLEND_MODE_MASK,4,2    ; @WINCONx_BLEND_MODE_MASK
	.no_dead_strip	_fimd_win_set_pixfmt
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.fimd_win_set_pixfmt
l_switch.table.fimd_win_set_pixfmt:
	.quad	_WINCON0_BPPMODE_24BPP_888
	.quad	_WINCON0_BPPMODE_16BPP_1555
	.quad	_WINCON0_BPPMODE_16BPP_565
	.quad	_WINCON0_BPPMODE_8BPP_PALETTE

	.p2align	3                               ; @switch.table.fimd_win_set_pixfmt.1
l_switch.table.fimd_win_set_pixfmt.1:
	.quad	_WINCONx_WSWP
	.quad	_WINCONx_HAWSWP
	.quad	_WINCONx_HAWSWP
	.quad	_WINCONx_BURSTLEN_8WORD

	.p2align	3                               ; @switch.table.fimd_win_set_pixfmt.2
l_switch.table.fimd_win_set_pixfmt.2:
	.quad	_WINCONx_BURSTLEN_16WORD
	.quad	_WINCONx_BURSTLEN_16WORD
	.quad	_WINCONx_BURSTLEN_16WORD
	.quad	_WINCONx_BYTSWP

.subsections_via_symbols
