	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_get_drive_strength
_npcm7xx_get_drive_strength:            ## @npcm7xx_get_drive_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	(%rax), %r14
	movq	_NPCM7XX_GPIO_PER_BANK@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %r15d
	shlq	$4, %r15
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%r14,%r15)
	movl	%edx, %edi
	callq	_BIT
	movq	%rax, %r12
	movq	_pincfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %r13d
	movq	_DRIVE_STRENGTH_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_NPCM7XX_GP_N_ODSC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	addq	8(%r14,%r15), %rdi
	callq	_ioread32
	movl	%r13d, %edi
	andl	%eax, %r12d
	je	LBB0_3
## %bb.2:
	callq	_DSHI
	jmp	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	callq	_DSLO
LBB0_4:
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_dev_dbg
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPCM7XX_GPIO_PER_BANK,4,2      ## @NPCM7XX_GPIO_PER_BANK
	.comm	_pincfg,8,3                     ## @pincfg
	.comm	_DRIVE_STRENGTH_MASK,4,2        ## @DRIVE_STRENGTH_MASK
	.comm	_NPCM7XX_GP_N_ODSC,8,3          ## @NPCM7XX_GP_N_ODSC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pin %d strength %d = %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_npcm7xx_get_drive_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm7xx_get_drive_strength
_npcm7xx_get_drive_strength:            ; @npcm7xx_get_drive_strength
	.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	x19, x1
	bl	_pinctrl_dev_get_drvdata
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _NPCM7XX_GPIO_PER_BANK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPCM7XX_GPIO_PER_BANK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	udiv	w23, w19, w8
	lsl	x8, x23, #4
	ldr	w8, [x22, x8]
	udiv	w9, w19, w8
	msub	w0, w9, w8, w19
	bl	_BIT
Lloh3:
	adrp	x8, _pincfg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pincfg@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w21, [x8, w19, uxtw #2]
Lloh6:
	adrp	x8, _DRIVE_STRENGTH_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRIVE_STRENGTH_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x0
	add	x8, x22, x23, lsl #4
	ldr	x8, [x8, #8]
Lloh9:
	adrp	x9, _NPCM7XX_GP_N_ODSC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NPCM7XX_GP_N_ODSC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	ands	w20, w0, w20
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_DSHI
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_DSLO
LBB0_5:
	mov	x21, x0
	add	x8, x22, x23, lsl #4
	ldr	w0, [x8, #4]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	mov	x4, x21
	bl	_dev_dbg
LBB0_6:
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NPCM7XX_GPIO_PER_BANK,4,2      ; @NPCM7XX_GPIO_PER_BANK
	.comm	_pincfg,8,3                     ; @pincfg
	.comm	_DRIVE_STRENGTH_MASK,4,2        ; @DRIVE_STRENGTH_MASK
	.comm	_NPCM7XX_GP_N_ODSC,8,3          ; @NPCM7XX_GP_N_ODSC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pin %d strength %d = %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_npcm7xx_get_drive_strength
.subsections_via_symbols
