	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qcom_adc5_hw_scale             ## -- Begin function qcom_adc5_hw_scale
	.p2align	4, 0x90
_qcom_adc5_hw_scale:                    ## @qcom_adc5_hw_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movq	_SCALE_HW_CALIB_DEFAULT@GOTPCREL(%rip), %rdi
	cmpl	%eax, (%rdi)
	ja	LBB0_2
## %bb.1:
	movq	_SCALE_HW_CALIB_INVALID@GOTPCREL(%rip), %rdi
	cmpl	%eax, (%rdi)
	jbe	LBB0_2
## %bb.3:
	movq	_scale_adc5_fn@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	%eax, %eax
	movq	(%rdi,%rax,8), %rax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	movq	%r8, %rcx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALE_HW_CALIB_DEFAULT,4,2     ## @SCALE_HW_CALIB_DEFAULT
	.comm	_SCALE_HW_CALIB_INVALID,4,2     ## @SCALE_HW_CALIB_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid scale type %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_scale_adc5_fn,8,3              ## @scale_adc5_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qcom_adc5_hw_scale             ; -- Begin function qcom_adc5_hw_scale
	.p2align	2
_qcom_adc5_hw_scale:                    ; @qcom_adc5_hw_scale
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
Lloh0:
	adrp	x9, _SCALE_HW_CALIB_DEFAULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCALE_HW_CALIB_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SCALE_HW_CALIB_INVALID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SCALE_HW_CALIB_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w0
	ccmp	w10, w0, #0, ls
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_pr_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh11:
	adrp	x9, _scale_adc5_fn@GOTPAGE
Lloh12:
	ldr	x9, [x9, _scale_adc5_fn@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x5, [x9, w8, uxtw #3]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALE_HW_CALIB_DEFAULT,4,2     ; @SCALE_HW_CALIB_DEFAULT
	.comm	_SCALE_HW_CALIB_INVALID,4,2     ; @SCALE_HW_CALIB_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid scale type %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_scale_adc5_fn,8,3              ; @scale_adc5_fn
.subsections_via_symbols
