	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function creg_gpio_set
_creg_gpio_set:                         ## @creg_gpio_set
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r12d
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movq	8(%rax), %rcx
	movl	%r12d, %r13d
	leaq	(,%r13,4), %rax
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	addq	(%rcx), %rax
	jmp	LBB0_3
LBB0_2:
	addq	8(%rcx), %rax
LBB0_3:
	movl	(%rax), %r15d
	movq	16(%rcx), %rax
	movl	(%rax,%r13,4), %ebx
	testl	%r12d, %r12d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movq	24(%rcx), %rcx
	cmpl	$8, %r13d
	jae	LBB0_8
## %bb.6:
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_8:
	movl	%r13d, %edx
	andl	$-8, %edx
	movd	%ebx, %xmm0
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	andq	$-2, %rdi
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rsi,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rcx,%rsi,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rcx,%rsi,4), %xmm1
	movdqu	48(%rcx,%rsi,4), %xmm3
	movdqu	(%rax,%rsi,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	16(%rax,%rsi,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	32(%rax,%rsi,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	48(%rax,%rsi,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_11
## %bb.12:
	testb	$1, %bl
	je	LBB0_14
LBB0_13:
	movdqu	(%rcx,%rsi,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rcx,%rsi,4), %xmm3
	paddd	%xmm1, %xmm3
	movdqu	(%rax,%rsi,4), %xmm0
	paddd	%xmm2, %xmm0
	movdqu	16(%rax,%rsi,4), %xmm1
	paddd	%xmm3, %xmm1
LBB0_14:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	jmp	LBB0_15
LBB0_9:
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	testb	$1, %bl
	jne	LBB0_13
	jmp	LBB0_14
LBB0_7:
	addl	(%rcx,%rdx,4), %ebx
	addl	(%rax,%rdx,4), %ebx
	incq	%rdx
LBB0_15:
	cmpq	%rdx, %r13
	jne	LBB0_7
LBB0_16:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r14), %edi
	callq	_readl
	movl	%eax, %r12d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	(%rax,%r13,4), %edi
	decl	%edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%ebx, %ecx
	shll	%cl, %eax
	shll	%cl, %r15d
	notl	%eax
	andl	%eax, %r12d
	orl	%r12d, %r15d
	movl	4(%r14), %esi
	movl	%r15d, %edi
	callq	_writel
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_creg_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function creg_gpio_set
_creg_gpio_set:                         ; @creg_gpio_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	bl	_gpiochip_get_data
	mov	x19, x0
	ldr	x22, [x0, #8]
	cbz	w21, LBB0_2
; %bb.1:
	ldr	x9, [x22]
	b	LBB0_3
LBB0_2:
	ldr	x9, [x22, #8]
LBB0_3:
	mov	w8, w20
	add	x9, x9, w20, uxtw #2
	ldr	w21, [x9]
	ldr	x9, [x22, #16]
	ldr	w23, [x9, x8, lsl #2]
	cbz	w20, LBB0_6
; %bb.4:
	ldr	x10, [x22, #24]
	cmp	x8, #16
	b.hs	LBB0_7
; %bb.5:
	mov	x11, #0
	b	LBB0_10
LBB0_6:
	mov	x24, #0
	b	LBB0_13
LBB0_7:
	and	x11, x8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w23
	movi.2d	v1, #0000000000000000
	add	x12, x10, #32
	add	x13, x9, #32
	mov	x14, x11
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	ldp	q16, q17, [x13, #-32]
	ldp	q18, q19, [x13], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	add.4s	v0, v0, v16
	add.4s	v1, v1, v17
	add.4s	v2, v2, v18
	add.4s	v3, v3, v19
	subs	x14, x14, #16
	b.ne	LBB0_8
; %bb.9:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w23, s0
	cmp	x8, x11
	b.eq	LBB0_12
LBB0_10:
	lsl	x12, x11, #2
	add	x9, x9, x12
	add	x10, x10, x12
	sub	x8, x8, x11
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	ldr	w12, [x9], #4
	add	w11, w11, w23
	add	w23, w11, w12
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	mov	w24, w20
LBB0_13:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #4]
	bl	_readl
	mov	x20, x0
	ldr	x8, [x22, #24]
	ldr	w8, [x8, x24, lsl #2]
	sub	w0, w8, #1
	mov	w1, #0
	bl	_GENMASK
	lsl	w8, w0, w23
	bic	w8, w20, w8
	lsl	w9, w21, w23
	orr	w0, w8, w9
	ldr	w1, [x19, #4]
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_creg_gpio_set
.subsections_via_symbols
