	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preview_config_hmed
_preview_config_hmed:                   ## @preview_config_hmed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_isp_device
	movl	4(%rbx), %esi
	xorl	%edx, %edx
	cmpl	$1, (%rbx)
	movl	$0, %ecx
	je	LBB0_2
## %bb.1:
	movq	_ISPPRV_HMED_ODDDIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	cmpl	$1, %esi
	je	LBB0_4
## %bb.3:
	movq	_ISPPRV_HMED_EVENDIST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_4:
	orl	%ecx, %edx
	movl	8(%rbx), %esi
	movq	_ISPPRV_HMED_THRESHOLD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%edx, %esi
	movq	_OMAP3_ISP_IOMEM_PREV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ISPPRV_HMED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_isp_reg_writel                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISPPRV_HMED_ODDDIST,4,2        ## @ISPPRV_HMED_ODDDIST
	.comm	_ISPPRV_HMED_EVENDIST,4,2       ## @ISPPRV_HMED_EVENDIST
	.comm	_ISPPRV_HMED_THRESHOLD_SHIFT,4,2 ## @ISPPRV_HMED_THRESHOLD_SHIFT
	.comm	_OMAP3_ISP_IOMEM_PREV,4,2       ## @OMAP3_ISP_IOMEM_PREV
	.comm	_ISPPRV_HMED,4,2                ## @ISPPRV_HMED
	.no_dead_strip	_preview_config_hmed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preview_config_hmed
_preview_config_hmed:                   ; @preview_config_hmed
	.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
	mov	x19, x1
	bl	_to_isp_device
Lloh0:
	adrp	x8, _ISPPRV_HMED_ODDDIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISPPRV_HMED_ODDDIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	cmp	w9, #1
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _ISPPRV_HMED_EVENDIST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISPPRV_HMED_EVENDIST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w10, #1
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
Lloh6:
	adrp	x10, _ISPPRV_HMED_THRESHOLD_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ISPPRV_HMED_THRESHOLD_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w8, w9
Lloh9:
	adrp	x8, _OMAP3_ISP_IOMEM_PREV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMAP3_ISP_IOMEM_PREV@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ISPPRV_HMED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ISPPRV_HMED@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	ldr	w3, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_isp_reg_writel
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ISPPRV_HMED_ODDDIST,4,2        ; @ISPPRV_HMED_ODDDIST
	.comm	_ISPPRV_HMED_EVENDIST,4,2       ; @ISPPRV_HMED_EVENDIST
	.comm	_ISPPRV_HMED_THRESHOLD_SHIFT,4,2 ; @ISPPRV_HMED_THRESHOLD_SHIFT
	.comm	_OMAP3_ISP_IOMEM_PREV,4,2       ; @OMAP3_ISP_IOMEM_PREV
	.comm	_ISPPRV_HMED,4,2                ; @ISPPRV_HMED
	.no_dead_strip	_preview_config_hmed
.subsections_via_symbols
