	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsp_gpio_get_strength
_nsp_gpio_get_strength:                 ## @nsp_gpio_get_strength
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_NSP_GPIO_DRV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_raw_spin_lock_irqsave
	movl	$0, (%r15)
	movq	_GPIO_DRV_STRENGTH_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	incl	%r14d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	addq	8(%r13), %rdi
	callq	_readl
	movq	%r13, %r15
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_BIT
                                        ## kill: def $eax killed $eax def $rax
	andl	%r13d, %eax
	movq	%r15, %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r12d, %ecx
	shrl	%cl, %eax
	leal	-2(%r14), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	addl	(%r15), %eax
	movl	%eax, (%r15)
	addl	$4, %ebx
	decl	%r14d
	cmpl	$1, %r14d
	ja	LBB0_3
## %bb.4:
	addl	%eax, %eax
	addl	$2, %eax
	jmp	LBB0_5
LBB0_1:
	movl	$2, %eax
LBB0_5:
	movl	%eax, (%r15)
	movq	%r13, %rdi
	callq	_raw_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSP_GPIO_DRV_CTRL,4,2          ## @NSP_GPIO_DRV_CTRL
	.comm	_GPIO_DRV_STRENGTH_BITS,4,2     ## @GPIO_DRV_STRENGTH_BITS
	.no_dead_strip	_nsp_gpio_get_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsp_gpio_get_strength
_nsp_gpio_get_strength:                 ; @nsp_gpio_get_strength
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NSP_GPIO_DRV_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NSP_GPIO_DRV_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_raw_spin_lock_irqsave
	str	wzr, [x20]
Lloh3:
	adrp	x8, _GPIO_DRV_STRENGTH_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIO_DRV_STRENGTH_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	add	w24, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w24, #2
	ldr	x8, [x19, #8]
	add	x0, x8, w23, uxtw
	bl	_readl
	mov	x22, x0
	mov	x0, x21
	bl	_BIT
	and	w8, w0, w22
	lsr	w8, w8, w21
	lsl	w8, w8, w25
	ldr	w9, [x20]
	add	w8, w8, w9
	str	w8, [x20]
	add	w23, w23, #4
	sub	w24, w24, #1
	cmp	w24, #1
	b.hi	LBB0_2
; %bb.3:
	lsl	w8, w8, #1
	add	w8, w8, #2
	b	LBB0_5
LBB0_4:
	mov	w8, #2
LBB0_5:
	str	w8, [x20]
	mov	x0, x19
	bl	_raw_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NSP_GPIO_DRV_CTRL,4,2          ; @NSP_GPIO_DRV_CTRL
	.comm	_GPIO_DRV_STRENGTH_BITS,4,2     ; @GPIO_DRV_STRENGTH_BITS
	.no_dead_strip	_nsp_gpio_get_strength
.subsections_via_symbols
