	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_get_slew_rate
_npcm7xx_get_slew_rate:                 ## @npcm7xx_get_slew_rate
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	8(%rdi)
	movl	%edx, %edi
	callq	_BIT
	movq	%rax, %r12
	movq	_pincfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %eax
	movq	_SLEW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_NPCM7XX_GP_N_OSRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	andl	%eax, %r12d
	jmp	LBB0_5
LBB0_2:
	movq	_SLEWLPC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_NPCM7XX_GCR_SRCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_regmap_read
	movq	_SRCNT_ESPI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, -36(%rbp)
	setne	%r12b
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pincfg,8,3                     ## @pincfg
	.comm	_SLEW,4,2                       ## @SLEW
	.comm	_NPCM7XX_GP_N_OSRC,8,3          ## @NPCM7XX_GP_N_OSRC
	.comm	_SLEWLPC,4,2                    ## @SLEWLPC
	.comm	_NPCM7XX_GCR_SRCNT,4,2          ## @NPCM7XX_GCR_SRCNT
	.comm	_SRCNT_ESPI,4,2                 ## @SRCNT_ESPI
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_npcm7xx_get_slew_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm7xx_get_slew_rate
_npcm7xx_get_slew_rate:                 ; @npcm7xx_get_slew_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x0, #8]
	udiv	w9, w2, w8
	msub	w0, w9, w8, w2
	bl	_BIT
Lloh0:
	adrp	x8, _pincfg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pincfg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, w22, uxtw #2]
Lloh3:
	adrp	x9, _SLEW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SLEW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _NPCM7XX_GP_N_OSRC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NPCM7XX_GP_N_OSRC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	and	w0, w0, w20
	b	LBB0_5
LBB0_2:
Lloh9:
	adrp	x9, _SLEWLPC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SLEWLPC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _NPCM7XX_GCR_SRCNT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NPCM7XX_GCR_SRCNT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh15:
	adrp	x9, _SRCNT_ESPI@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SRCNT_ESPI@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_pincfg,8,3                     ; @pincfg
	.comm	_SLEW,4,2                       ; @SLEW
	.comm	_NPCM7XX_GP_N_OSRC,8,3          ; @NPCM7XX_GP_N_OSRC
	.comm	_SLEWLPC,4,2                    ; @SLEWLPC
	.comm	_NPCM7XX_GCR_SRCNT,4,2          ; @NPCM7XX_GCR_SRCNT
	.comm	_SRCNT_ESPI,4,2                 ; @SRCNT_ESPI
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_npcm7xx_get_slew_rate
.subsections_via_symbols
