	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_gpio_direction_input
_atmel_gpio_direction_input:            ## @atmel_gpio_direction_input
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	_ATMEL_PIO_MSKR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %r15d
	movl	4(%rbx), %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_atmel_gpio_write
	movl	(%rbx), %esi
	movq	_ATMEL_PIO_CFGR@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_atmel_gpio_read
	movq	_ATMEL_PIO_DIR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_atmel_gpio_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATMEL_PIO_MSKR,4,2             ## @ATMEL_PIO_MSKR
	.comm	_ATMEL_PIO_CFGR,4,2             ## @ATMEL_PIO_CFGR
	.comm	_ATMEL_PIO_DIR_MASK,4,2         ## @ATMEL_PIO_DIR_MASK
	.no_dead_strip	_atmel_gpio_direction_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_gpio_direction_input
_atmel_gpio_direction_input:            ; @atmel_gpio_direction_input
	.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, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x22, [x8, w19, uxtw #3]
Lloh0:
	adrp	x8, _ATMEL_PIO_MSKR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATMEL_PIO_MSKR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldp	w21, w0, [x22]
	bl	_BIT
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_atmel_gpio_write
	ldr	w1, [x22]
Lloh3:
	adrp	x19, _ATMEL_PIO_CFGR@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ATMEL_PIO_CFGR@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_atmel_gpio_read
Lloh5:
	adrp	x8, _ATMEL_PIO_DIR_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATMEL_PIO_DIR_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w3, w0, w8
	ldr	w1, [x22]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_atmel_gpio_write
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATMEL_PIO_MSKR,4,2             ; @ATMEL_PIO_MSKR
	.comm	_ATMEL_PIO_CFGR,4,2             ; @ATMEL_PIO_CFGR
	.comm	_ATMEL_PIO_DIR_MASK,4,2         ; @ATMEL_PIO_DIR_MASK
	.no_dead_strip	_atmel_gpio_direction_input
.subsections_via_symbols
