	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function madera_gpio_direction_in
_madera_gpio_direction_in:              ## @madera_gpio_direction_in
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	(%rax), %rax
	addl	%ebx, %ebx
	movl	(%rax), %edi
	movq	_MADERA_GPIO1_CTRL_2@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	_MADERA_GP1_DIR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MADERA_GP1_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MADERA_GPIO1_CTRL_2,8,3        ## @MADERA_GPIO1_CTRL_2
	.comm	_MADERA_GP1_DIR_MASK,4,2        ## @MADERA_GP1_DIR_MASK
	.comm	_MADERA_GP1_DIR,4,2             ## @MADERA_GP1_DIR
	.no_dead_strip	_madera_gpio_direction_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function madera_gpio_direction_in
_madera_gpio_direction_in:              ; @madera_gpio_direction_in
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_gpiochip_get_data
	ldr	x8, [x0]
	lsl	w9, w19, #1
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _MADERA_GPIO1_CTRL_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MADERA_GPIO1_CTRL_2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x9
Lloh3:
	adrp	x8, _MADERA_GP1_DIR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MADERA_GP1_DIR_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MADERA_GP1_DIR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MADERA_GP1_DIR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	ldr	w3, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MADERA_GPIO1_CTRL_2,8,3        ; @MADERA_GPIO1_CTRL_2
	.comm	_MADERA_GP1_DIR_MASK,4,2        ; @MADERA_GP1_DIR_MASK
	.comm	_MADERA_GP1_DIR,4,2             ; @MADERA_GP1_DIR
	.no_dead_strip	_madera_gpio_direction_in
.subsections_via_symbols
