	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zynq_gpio_save_context
_zynq_gpio_save_context:                ## @zynq_gpio_save_context
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	64(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_ZYNQ_GPIO_DATA_LSW_OFFSET
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readl_relaxed
	movq	56(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_ZYNQ_GPIO_DATA_MSW_OFFSET
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readl_relaxed
	movq	48(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_ZYNQ_GPIO_DIRM_OFFSET
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readl_relaxed
	movq	40(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_ZYNQ_GPIO_INTMASK_OFFSET
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readl_relaxed
	movq	32(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_ZYNQ_GPIO_INTTYPE_OFFSET
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readl_relaxed
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_ZYNQ_GPIO_INTPOL_OFFSET
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readl_relaxed
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_ZYNQ_GPIO_INTANY_OFFSET
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readl_relaxed
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	64(%r14), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_zynq_gpio_save_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zynq_gpio_save_context
_zynq_gpio_save_context:                ; @zynq_gpio_save_context
	.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
	ldr	x8, [x0, #64]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19]
	mov	x0, x20
	bl	_ZYNQ_GPIO_DATA_LSW_OFFSET
	add	x0, x0, x21
	bl	_readl_relaxed
	ldr	x8, [x19, #56]
	lsl	x21, x20, #3
	str	x0, [x8, x21]
	ldr	x22, [x19]
	mov	x0, x20
	bl	_ZYNQ_GPIO_DATA_MSW_OFFSET
	add	x0, x0, x22
	bl	_readl_relaxed
	ldr	x8, [x19, #48]
	str	x0, [x8, x21]
	ldr	x22, [x19]
	mov	x0, x20
	bl	_ZYNQ_GPIO_DIRM_OFFSET
	add	x0, x0, x22
	bl	_readl_relaxed
	ldr	x8, [x19, #40]
	str	x0, [x8, x21]
	ldr	x22, [x19]
	mov	x0, x20
	bl	_ZYNQ_GPIO_INTMASK_OFFSET
	add	x0, x0, x22
	bl	_readl_relaxed
	ldr	x8, [x19, #32]
	str	x0, [x8, x21]
	ldr	x22, [x19]
	mov	x0, x20
	bl	_ZYNQ_GPIO_INTTYPE_OFFSET
	add	x0, x0, x22
	bl	_readl_relaxed
	ldr	x8, [x19, #24]
	str	x0, [x8, x21]
	ldr	x22, [x19]
	mov	x0, x20
	bl	_ZYNQ_GPIO_INTPOL_OFFSET
	add	x0, x0, x22
	bl	_readl_relaxed
	ldr	x8, [x19, #16]
	str	x0, [x8, x21]
	ldr	x22, [x19]
	mov	x0, x20
	bl	_ZYNQ_GPIO_INTANY_OFFSET
	add	x0, x0, x22
	bl	_readl_relaxed
	ldr	x8, [x19, #8]
	str	x0, [x8, x21]
	add	x20, x20, #1
	ldr	x8, [x19, #64]
	ldr	w8, [x8]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_zynq_gpio_save_context
.subsections_via_symbols
