	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_set_realign_cfg
_vfe_set_realign_cfg:                   ## @vfe_set_realign_cfg
	.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
	movq	%rdx, %rax
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	_VFE_0_MODULE_ZOOM_EN_REALIGN_BUF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %r12
	movq	_V4L2_PIX_FMT_UYVY@GOTPCREL(%rip), %r15
	cmpq	(%r12), %rbx
	je	LBB0_4
## %bb.1:
	movq	_V4L2_PIX_FMT_YVYU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_4
## %bb.2:
	movq	_V4L2_PIX_FMT_VYUY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_4
## %bb.3:
	cmpq	(%r15), %rbx
	je	LBB0_4
## %bb.9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_VFE_0_MODULE_ZOOM_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_vfe_reg_set
	movq	_VFE_0_REALIGN_BUF_CFG_HSUB_ENABLE@GOTPCREL(%rip), %rax
	movq	_VFE_0_REALIGN_BUF_CFG_CR_ODD_PIXEL@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpq	(%r12), %rbx
	je	LBB0_7
## %bb.6:
	movq	_VFE_0_REALIGN_BUF_CFG_CB_ODD_PIXEL@GOTPCREL(%rip), %rdx
LBB0_7:
	cmpq	(%r15), %rbx
	cmoveq	%rcx, %rdx
	movq	(%rdx), %rdi
	orq	(%rax), %rdi
	movq	_VFE_0_REALIGN_BUF_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vfe_reg_clr                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VFE_0_MODULE_ZOOM_EN_REALIGN_BUF,8,3 ## @VFE_0_MODULE_ZOOM_EN_REALIGN_BUF
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ## @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_PIX_FMT_YVYU,8,3          ## @V4L2_PIX_FMT_YVYU
	.comm	_V4L2_PIX_FMT_VYUY,8,3          ## @V4L2_PIX_FMT_VYUY
	.comm	_V4L2_PIX_FMT_UYVY,8,3          ## @V4L2_PIX_FMT_UYVY
	.comm	_VFE_0_MODULE_ZOOM_EN,4,2       ## @VFE_0_MODULE_ZOOM_EN
	.comm	_VFE_0_REALIGN_BUF_CFG_HSUB_ENABLE,8,3 ## @VFE_0_REALIGN_BUF_CFG_HSUB_ENABLE
	.comm	_VFE_0_REALIGN_BUF_CFG_CR_ODD_PIXEL,8,3 ## @VFE_0_REALIGN_BUF_CFG_CR_ODD_PIXEL
	.comm	_VFE_0_REALIGN_BUF_CFG_CB_ODD_PIXEL,8,3 ## @VFE_0_REALIGN_BUF_CFG_CB_ODD_PIXEL
	.comm	_VFE_0_REALIGN_BUF_CFG,8,3      ## @VFE_0_REALIGN_BUF_CFG
	.no_dead_strip	_vfe_set_realign_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_set_realign_cfg
_vfe_set_realign_cfg:                   ; @vfe_set_realign_cfg
	.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
	ldr	x20, [x1]
Lloh0:
	adrp	x21, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh1:
	ldr	x21, [x21, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
Lloh2:
	adrp	x8, _V4L2_PIX_FMT_YVYU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_PIX_FMT_YVYU@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _V4L2_PIX_FMT_VYUY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_PIX_FMT_VYUY@GOTPAGEOFF]
Lloh7:
	adrp	x22, _V4L2_PIX_FMT_UYVY@GOTPAGE
Lloh8:
	ldr	x22, [x22, _V4L2_PIX_FMT_UYVY@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	ldr	x11, [x22]
	cmp	x20, x9
	ccmp	x20, x8, #4, ne
	ccmp	x20, x10, #4, ne
	ccmp	x20, x11, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh10:
	adrp	x8, _VFE_0_MODULE_ZOOM_EN_REALIGN_BUF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VFE_0_MODULE_ZOOM_EN_REALIGN_BUF@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _VFE_0_MODULE_ZOOM_EN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VFE_0_MODULE_ZOOM_EN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	cbz	x2, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x2, x8
	bl	_vfe_reg_set
Lloh16:
	adrp	x8, _VFE_0_REALIGN_BUF_CFG_HSUB_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VFE_0_REALIGN_BUF_CFG_HSUB_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x10, [x21]
	cmp	x20, x10
	ccmp	x20, x9, #4, ne
Lloh19:
	adrp	x9, _VFE_0_REALIGN_BUF_CFG_CR_ODD_PIXEL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VFE_0_REALIGN_BUF_CFG_CR_ODD_PIXEL@GOTPAGEOFF]
Lloh21:
	adrp	x10, _VFE_0_REALIGN_BUF_CFG_CB_ODD_PIXEL@GOTPAGE
Lloh22:
	ldr	x10, [x10, _VFE_0_REALIGN_BUF_CFG_CB_ODD_PIXEL@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	orr	x0, x9, x8
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _VFE_0_REALIGN_BUF_CFG@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VFE_0_REALIGN_BUF_CFG@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, 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
	b	_writel_relaxed
LBB0_3:
	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
LBB0_4:
	mov	x0, x19
	mov	x2, 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
	b	_vfe_reg_clr
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_VFE_0_MODULE_ZOOM_EN_REALIGN_BUF,8,3 ; @VFE_0_MODULE_ZOOM_EN_REALIGN_BUF
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ; @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_PIX_FMT_YVYU,8,3          ; @V4L2_PIX_FMT_YVYU
	.comm	_V4L2_PIX_FMT_VYUY,8,3          ; @V4L2_PIX_FMT_VYUY
	.comm	_V4L2_PIX_FMT_UYVY,8,3          ; @V4L2_PIX_FMT_UYVY
	.comm	_VFE_0_MODULE_ZOOM_EN,4,2       ; @VFE_0_MODULE_ZOOM_EN
	.comm	_VFE_0_REALIGN_BUF_CFG_HSUB_ENABLE,8,3 ; @VFE_0_REALIGN_BUF_CFG_HSUB_ENABLE
	.comm	_VFE_0_REALIGN_BUF_CFG_CR_ODD_PIXEL,8,3 ; @VFE_0_REALIGN_BUF_CFG_CR_ODD_PIXEL
	.comm	_VFE_0_REALIGN_BUF_CFG_CB_ODD_PIXEL,8,3 ; @VFE_0_REALIGN_BUF_CFG_CB_ODD_PIXEL
	.comm	_VFE_0_REALIGN_BUF_CFG,8,3      ; @VFE_0_REALIGN_BUF_CFG
	.no_dead_strip	_vfe_set_realign_cfg
.subsections_via_symbols
