	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function px30_calc_schmitt_reg_and_bit
_px30_calc_schmitt_reg_and_bit:         ## @px30_calc_schmitt_reg_and_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	8(%rdi), %rsi
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	(%rsi), %rsi
	movq	%rsi, (%rdx)
	movq	_PX30_SCHMITT_GRF_OFFSET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
	movl	(%rdi), %esi
	decl	%esi
	movq	_PX30_SCHMITT_BANK_STRIDE@GOTPCREL(%rip), %rdi
	imull	(%rdi), %esi
	addl	%edx, %esi
	movq	_PX30_SCHMITT_PINS_PER_GRF_REG@GOTPCREL(%rip), %rdi
	jmp	LBB0_3
LBB0_1:
	movq	8(%rsi), %rsi
	movq	%rsi, (%rdx)
	movq	_PX30_SCHMITT_PMU_OFFSET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, (%rcx)
	movq	_PX30_SCHMITT_PINS_PER_PMU_REG@GOTPCREL(%rip), %rdi
LBB0_3:
	cltd
	idivl	(%rdi)
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rsi,%rax,4), %eax
	movl	%eax, (%rcx)
	movl	%edx, (%r8)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PX30_SCHMITT_PMU_OFFSET,4,2    ## @PX30_SCHMITT_PMU_OFFSET
	.comm	_PX30_SCHMITT_PINS_PER_PMU_REG,4,2 ## @PX30_SCHMITT_PINS_PER_PMU_REG
	.comm	_PX30_SCHMITT_GRF_OFFSET,4,2    ## @PX30_SCHMITT_GRF_OFFSET
	.comm	_PX30_SCHMITT_PINS_PER_GRF_REG,4,2 ## @PX30_SCHMITT_PINS_PER_GRF_REG
	.comm	_PX30_SCHMITT_BANK_STRIDE,4,2   ## @PX30_SCHMITT_BANK_STRIDE
	.no_dead_strip	_px30_calc_schmitt_reg_and_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function px30_calc_schmitt_reg_and_bit
_px30_calc_schmitt_reg_and_bit:         ; @px30_calc_schmitt_reg_and_bit
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w9, [x0]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	str	x8, [x2]
Lloh0:
	adrp	x8, _PX30_SCHMITT_GRF_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PX30_SCHMITT_GRF_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x3]
	ldr	w9, [x0]
	sub	w9, w9, #1
Lloh3:
	adrp	x10, _PX30_SCHMITT_BANK_STRIDE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PX30_SCHMITT_BANK_STRIDE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	madd	w8, w9, w10, w8
Lloh6:
	adrp	x9, _PX30_SCHMITT_PINS_PER_GRF_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PX30_SCHMITT_PINS_PER_GRF_REG@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x8, #8]
	str	x8, [x2]
Lloh8:
	adrp	x8, _PX30_SCHMITT_PMU_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PX30_SCHMITT_PMU_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x3]
Lloh11:
	adrp	x9, _PX30_SCHMITT_PINS_PER_PMU_REG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PX30_SCHMITT_PINS_PER_PMU_REG@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	sdiv	w10, w1, w9
	add	w8, w8, w10, lsl #2
	str	w8, [x3]
	msub	w8, w10, w9, w1
	str	w8, [x4]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PX30_SCHMITT_PMU_OFFSET,4,2    ; @PX30_SCHMITT_PMU_OFFSET
	.comm	_PX30_SCHMITT_PINS_PER_PMU_REG,4,2 ; @PX30_SCHMITT_PINS_PER_PMU_REG
	.comm	_PX30_SCHMITT_GRF_OFFSET,4,2    ; @PX30_SCHMITT_GRF_OFFSET
	.comm	_PX30_SCHMITT_PINS_PER_GRF_REG,4,2 ; @PX30_SCHMITT_PINS_PER_GRF_REG
	.comm	_PX30_SCHMITT_BANK_STRIDE,4,2   ; @PX30_SCHMITT_BANK_STRIDE
	.no_dead_strip	_px30_calc_schmitt_reg_and_bit
.subsections_via_symbols
