	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_set_drive_strength
_npcm7xx_set_drive_strength:            ## @npcm7xx_set_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	%edx, %r14d
	movl	%esi, %r12d
	movq	(%rdi), %r15
	movq	_NPCM7XX_GPIO_PER_BANK@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %ebx
	shlq	$4, %rbx
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	8(%r15,%rbx)
	movl	%edx, %edi
	callq	_BIT
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	%r14d, %esi
	movq	_pincfg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%r12d, %ecx
	movq	_DRIVE_STRENGTH_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	andl	(%rdi,%rcx,4), %r14d
	je	LBB0_2
## %bb.3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	(%r15,%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rbx), %rax
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	movl	%esi, %r13d
	callq	_DSLO
	cmpl	%r13d, %eax
	jne	LBB0_5
## %bb.4:
	movl	%r13d, %ecx
	movl	12(%r15,%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_dbg
	movq	_NPCM7XX_GP_N_ODSC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_npcm_gpio_clr
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_2:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r14d, %edi
	callq	_DSHI
	cmpl	%r13d, %eax
	jne	LBB0_7
## %bb.6:
	movl	12(%r15,%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_dev_dbg
	movq	_NPCM7XX_GP_N_ODSC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_npcm_gpio_set
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_7:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.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	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting pin %d to low strength [%d]\n"

	.comm	_NPCM7XX_GP_N_ODSC,8,3          ## @NPCM7XX_GP_N_ODSC
L_.str.1:                               ## @.str.1
	.asciz	"setting pin %d to high strength [%d]\n"

	.no_dead_strip	_npcm7xx_set_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_set_drive_strength
_npcm7xx_set_drive_strength:            ; @npcm7xx_set_drive_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	x21, x2
	mov	x22, x1
	ldr	x25, [x0]
Lloh0:
	adrp	x8, _NPCM7XX_GPIO_PER_BANK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPCM7XX_GPIO_PER_BANK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	udiv	w26, w1, w8
	add	x24, x25, w26, uxtw #4
	mov	x19, x24
	ldr	w8, [x19, #8]!
	udiv	w9, w1, w8
	msub	w0, w9, w8, w1
	bl	_BIT
	cbz	w21, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _pincfg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pincfg@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, w22, uxtw #2]
Lloh6:
	adrp	x9, _DRIVE_STRENGTH_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRIVE_STRENGTH_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w23, w9, w8
	cbz	w23, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x23
	bl	_DSLO
	cmp	w0, w21
	b.ne	LBB0_4
; %bb.3:
	add	x8, x25, x26, lsl #4
	ldr	w0, [x8, #12]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_dev_dbg
	ldr	x8, [x24]
Lloh11:
	adrp	x9, _NPCM7XX_GP_N_ODSC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NPCM7XX_GP_N_ODSC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x20
	bl	_npcm_gpio_clr
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x23
	bl	_DSHI
	cmp	w0, w21
	b.ne	LBB0_6
; %bb.5:
	add	x8, x25, x26, lsl #4
	ldr	w0, [x8, #12]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_dev_dbg
	ldr	x8, [x24]
Lloh16:
	adrp	x9, _NPCM7XX_GP_N_ODSC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NPCM7XX_GP_N_ODSC@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x20
	bl	_npcm_gpio_set
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting pin %d to low strength [%d]\n"

	.comm	_NPCM7XX_GP_N_ODSC,8,3          ; @NPCM7XX_GP_N_ODSC
l_.str.1:                               ; @.str.1
	.asciz	"setting pin %d to high strength [%d]\n"

	.no_dead_strip	_npcm7xx_set_drive_strength
.subsections_via_symbols
