	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_gpio_direction_output
_atmel_gpio_direction_output:           ## @atmel_gpio_direction_output
	.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	%edx, %r14d
	movl	%esi, %r15d
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rbx
	testl	%r14d, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_ATMEL_PIO_CODR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ATMEL_PIO_SODR@GOTPCREL(%rip), %rax
LBB0_3:
	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
	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
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %ecx
	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_SODR,4,2             ## @ATMEL_PIO_SODR
	.comm	_ATMEL_PIO_CODR,4,2             ## @ATMEL_PIO_CODR
	.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_output
.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_output
_atmel_gpio_direction_output:           ; @atmel_gpio_direction_output
	.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, x2
	mov	x20, x1
	bl	_gpiochip_get_data
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x22, [x8, w20, uxtw #3]
Lloh0:
	adrp	x8, _ATMEL_PIO_SODR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATMEL_PIO_SODR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ATMEL_PIO_CODR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATMEL_PIO_CODR@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w19, [x8]
	ldp	w20, w0, [x22]
	bl	_BIT
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_atmel_gpio_write
Lloh4:
	adrp	x8, _ATMEL_PIO_MSKR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATMEL_PIO_MSKR@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	ldp	w20, w0, [x22]
	bl	_BIT
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_atmel_gpio_write
	ldr	w1, [x22]
Lloh7:
	adrp	x19, _ATMEL_PIO_CFGR@GOTPAGE
Lloh8:
	ldr	x19, [x19, _ATMEL_PIO_CFGR@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, x21
	bl	_atmel_gpio_read
Lloh9:
	adrp	x8, _ATMEL_PIO_DIR_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATMEL_PIO_DIR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	w1, [x22]
	ldr	w2, [x19]
	mov	x0, x21
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ATMEL_PIO_SODR,4,2             ; @ATMEL_PIO_SODR
	.comm	_ATMEL_PIO_CODR,4,2             ; @ATMEL_PIO_CODR
	.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_output
.subsections_via_symbols
