	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_set_slew_rate
_npcm7xx_set_slew_rate:                 ## @npcm7xx_set_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	8(%rdi)
	movl	%edx, %edi
	callq	_BIT
	movq	_pincfg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edx
	movl	(%rcx,%rdx,4), %ecx
	movq	_SLEW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.1:
	leaq	8(%r12), %rdi
	cmpl	$1, %r15d
	je	LBB0_9
## %bb.2:
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.3:
	movq	_NPCM7XX_GP_N_OSRC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edx
	callq	_npcm_gpio_clr
	jmp	LBB0_11
LBB0_4:
	movq	_SLEWLPC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.5:
	cmpl	$1, %r15d
	je	LBB0_10
## %bb.6:
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.7:
	movq	_NPCM7XX_GCR_SRCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SRCNT_ESPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	jmp	LBB0_12
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	movq	_NPCM7XX_GP_N_OSRC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edx
	callq	_npcm_gpio_set
	jmp	LBB0_11
LBB0_10:
	movq	_NPCM7XX_GCR_SRCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SRCNT_ESPI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_regmap_update_bits
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	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	_EINVAL,4,2                     ## @EINVAL
	.comm	_SLEWLPC,4,2                    ## @SLEWLPC
	.comm	_NPCM7XX_GCR_SRCNT,4,2          ## @NPCM7XX_GCR_SRCNT
	.comm	_SRCNT_ESPI,4,2                 ## @SRCNT_ESPI
	.no_dead_strip	_npcm7xx_set_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_set_slew_rate
_npcm7xx_set_slew_rate:                 ; @npcm7xx_set_slew_rate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	mov	x21, x0
	ldr	w8, [x21, #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, w23, uxtw #2]
Lloh3:
	adrp	x9, _SLEW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SLEW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x2, x0
	cmp	w20, #1
	b.eq	LBB0_9
; %bb.2:
	cbnz	w20, LBB0_8
; %bb.3:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _NPCM7XX_GP_N_OSRC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NPCM7XX_GP_N_OSRC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_npcm_gpio_clr
	b	LBB0_12
LBB0_4:
Lloh9:
	adrp	x9, _SLEWLPC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SLEWLPC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	cmp	w20, #1
	b.eq	LBB0_10
; %bb.6:
	cbnz	w20, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _NPCM7XX_GCR_SRCNT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NPCM7XX_GCR_SRCNT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _SRCNT_ESPI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SRCNT_ESPI@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	b	LBB0_11
LBB0_8:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_9:
	ldr	x8, [x22]
Lloh21:
	adrp	x9, _NPCM7XX_GP_N_OSRC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NPCM7XX_GP_N_OSRC@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_npcm_gpio_set
	b	LBB0_12
LBB0_10:
Lloh24:
	adrp	x8, _NPCM7XX_GCR_SRCNT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NPCM7XX_GCR_SRCNT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _SRCNT_ESPI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SRCNT_ESPI@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
LBB0_11:
	bl	_regmap_update_bits
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	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
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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	_EINVAL,4,2                     ; @EINVAL
	.comm	_SLEWLPC,4,2                    ; @SLEWLPC
	.comm	_NPCM7XX_GCR_SRCNT,4,2          ; @NPCM7XX_GCR_SRCNT
	.comm	_SRCNT_ESPI,4,2                 ; @SRCNT_ESPI
	.no_dead_strip	_npcm7xx_set_slew_rate
.subsections_via_symbols
