	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgpio_save_regs
_xgpio_save_regs:                       ## @xgpio_save_regs
	.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	%rdi, %rbx
	movq	_XGPIO_DATA_OFFSET@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	callq	_xgpio_writereg
	movq	_XGPIO_TRI_OFFSET@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_xgpio_writereg
	movq	24(%rbx), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	movq	_XGPIO_CHANNEL_OFFSET@GOTPCREL(%rip), %r15
	addq	(%r15), %rdi
	movq	16(%rbx), %rax
	movl	4(%rax), %esi
	callq	_xgpio_writereg
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	addq	(%r15), %rdi
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xgpio_writereg                 ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGPIO_DATA_OFFSET,8,3          ## @XGPIO_DATA_OFFSET
	.comm	_XGPIO_TRI_OFFSET,8,3           ## @XGPIO_TRI_OFFSET
	.comm	_XGPIO_CHANNEL_OFFSET,8,3       ## @XGPIO_CHANNEL_OFFSET
	.no_dead_strip	_xgpio_save_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgpio_save_regs
_xgpio_save_regs:                       ; @xgpio_save_regs
	.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, x0
Lloh0:
	adrp	x21, _XGPIO_DATA_OFFSET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XGPIO_DATA_OFFSET@GOTPAGEOFF]
	ldr	x8, [x21]
	ldp	x9, x10, [x0, #8]
	add	x0, x8, x9
	ldr	w1, [x10]
	bl	_xgpio_writereg
Lloh2:
	adrp	x20, _XGPIO_TRI_OFFSET@GOTPAGE
Lloh3:
	ldr	x20, [x20, _XGPIO_TRI_OFFSET@GOTPAGEOFF]
	ldr	x8, [x20]
	ldp	x10, x9, [x19]
	add	x0, x8, x9
	ldr	w1, [x10]
	bl	_xgpio_writereg
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh4:
	adrp	x21, _XGPIO_CHANNEL_OFFSET@GOTPAGE
Lloh5:
	ldr	x21, [x21, _XGPIO_CHANNEL_OFFSET@GOTPAGEOFF]
	ldr	x9, [x21]
	ldp	x10, x11, [x19, #8]
	add	x8, x8, x10
	add	x0, x8, x9
	ldr	w1, [x11, #4]
	bl	_xgpio_writereg
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldp	x11, x10, [x19]
	add	x8, x8, x10
	add	x0, x8, x9
	ldr	w1, [x11, #4]
	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
	b	_xgpio_writereg
LBB0_2:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XGPIO_DATA_OFFSET,8,3          ; @XGPIO_DATA_OFFSET
	.comm	_XGPIO_TRI_OFFSET,8,3           ; @XGPIO_TRI_OFFSET
	.comm	_XGPIO_CHANNEL_OFFSET,8,3       ; @XGPIO_CHANNEL_OFFSET
	.no_dead_strip	_xgpio_save_regs
.subsections_via_symbols
