	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm_gpio_set_direction
_npcm_gpio_set_direction:               ## @npcm_gpio_set_direction
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	(%rax), %r13
	movq	_NPCM7XX_GPIO_PER_BANK@GOTPCREL(%rip), %rcx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %ebx
	shlq	$4, %rbx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	8(%r13,%rbx)
	movl	%edx, %edi
	callq	_BIT
	movl	%eax, %r12d
	movl	12(%r13,%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dev_dbg
	testl	%r14d, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_NPCM7XX_GP_N_OES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NPCM7XX_GP_N_OEC@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rsi
	addq	(%r13,%rbx), %rsi
	movl	%r12d, %edi
	callq	_iowrite32
	xorl	%eax, %eax
	addq	$8, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO Set Direction: %d = %d\n"

	.comm	_NPCM7XX_GP_N_OEC,8,3           ## @NPCM7XX_GP_N_OEC
	.comm	_NPCM7XX_GP_N_OES,8,3           ## @NPCM7XX_GP_N_OES
	.no_dead_strip	_npcm_gpio_set_direction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm_gpio_set_direction
_npcm_gpio_set_direction:               ; @npcm_gpio_set_direction
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x3
	mov	x20, x2
	bl	_pinctrl_dev_get_drvdata
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NPCM7XX_GPIO_PER_BANK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NPCM7XX_GPIO_PER_BANK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w9, w20, w9
	add	x22, x8, w9, uxtw #4
	ldr	w8, [x22, #8]
	udiv	w9, w20, w8
	msub	w0, w9, w8, w20
	bl	_BIT
	mov	x21, x0
	ldr	w0, [x22, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_dev_dbg
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _NPCM7XX_GP_N_OES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NPCM7XX_GP_N_OES@GOTPAGEOFF]
Lloh7:
	adrp	x10, _NPCM7XX_GP_N_OEC@GOTPAGE
Lloh8:
	ldr	x10, [x10, _NPCM7XX_GP_N_OEC@GOTPAGEOFF]
	cmp	w19, #0
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_iowrite32
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NPCM7XX_GPIO_PER_BANK,4,2      ; @NPCM7XX_GPIO_PER_BANK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO Set Direction: %d = %d\n"

	.comm	_NPCM7XX_GP_N_OEC,8,3           ; @NPCM7XX_GP_N_OEC
	.comm	_NPCM7XX_GP_N_OES,8,3           ; @NPCM7XX_GP_N_OES
	.no_dead_strip	_npcm_gpio_set_direction
.subsections_via_symbols
