	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pisosr_gpio_get_multiple
_pisosr_gpio_get_multiple:              ## @pisosr_gpio_get_multiple
	.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
	movq	%rdx, %r13
	movq	%rdi, %r12
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movl	(%r12), %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_pisosr_gpio_refresh
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_bitmap_zero
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.1:
	movq	(%r14), %r10
	movl	%r15d, %r8d
	cmpl	$1, %r15d
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movl	$8, %esi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r10,%rsi), %rdi
	leal	-8(%rsi), %ecx
	andb	$48, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rdi
	movl	%eax, %edx
	andl	$-8, %edx
	orq	(%r13,%rdx), %rdi
	movq	%rdi, (%r13,%rdx)
	movq	(%r10,%rsi), %rbx
	movl	%esi, %ecx
	andb	$56, %cl
	shlq	%cl, %rbx
	orq	%rdi, %rbx
	movq	%rbx, (%r13,%rdx)
	addq	$2, %rax
	addq	$16, %rsi
	cmpq	%rax, %r9
	jne	LBB0_4
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	movq	(%r10,%rax,8), %rdx
	leal	(,%rax,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rdx
	andl	$-8, %eax
	orq	%rdx, (%r13,%rax)
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pisosr_gpio_get_multiple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pisosr_gpio_get_multiple
_pisosr_gpio_get_multiple:              ; @pisosr_gpio_get_multiple
	.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	x22, x0
	bl	_gpiochip_get_data
	mov	x20, x0
	ldr	w0, [x22]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mov	x21, x0
	mov	x0, x20
	bl	_pisosr_gpio_refresh
	ldr	w1, [x22]
	mov	x0, x19
	bl	_bitmap_zero
	cbz	w21, LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x9, [x20]
	mov	w10, w21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #3
	ldr	x12, [x9, x11]
	and	x11, x11, #0x38
	ubfx	x13, x8, #3, #29
	lsl	x13, x13, #3
	ldr	x14, [x19, x13]
	lsl	x11, x12, x11
	orr	x11, x14, x11
	str	x11, [x19, x13]
	add	x8, x8, #1
	cmp	x8, x10
	b.ne	LBB0_2
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pisosr_gpio_get_multiple
.subsections_via_symbols
