	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws16c48_gpio_get_multiple
_ws16c48_gpio_get_multiple:             ## @ws16c48_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_gpiochip_get_data
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r12d
	xorl	%ebx, %ebx
	movl	$7, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bitmap_zero
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	cmpq	$8, %r12
	jae	LBB0_1
LBB0_5:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	shrq	$3, -48(%rbp)                   ## 8-byte Folded Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	addl	$8, %ebx
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT_WORD
	movq	%rax, %r15
	movl	%ebx, %eax
	xorl	%edx, %edx
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movl	%edx, %r14d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r14d, %ecx
	shlq	%cl, %r12
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	andq	(%rax,%r15,8), %r12
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	movl	%r14d, %ecx
	shlq	%cl, %rax
	andq	%r12, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orq	%rax, (%rcx,%r15,8)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.no_dead_strip	_ws16c48_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 ws16c48_gpio_get_multiple
_ws16c48_gpio_get_multiple:             ; @ws16c48_gpio_get_multiple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_gpiochip_get_data
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w24, [x23]
	mov	w0, #7
	mov	w1, #0
	bl	_GENMASK
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_bitmap_zero
	cmp	w24, #8
	b.hs	LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	w23, #0
	mov	x25, #0
	lsr	x26, x24, #3
Lloh0:
	adrp	x27, _BITS_PER_LONG@GOTPAGE
Lloh1:
	ldr	x27, [x27, _BITS_PER_LONG@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	add	w23, w23, #8
	cmp	x26, x25
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_BIT_WORD
	ldr	w8, [x27]
	udiv	w9, w23, w8
	msub	w28, w9, w8, w23
	ldr	x8, [x20, x0, lsl #3]
	lsl	x9, x22, x28
	ands	x21, x9, x8
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x0, x25, x8
	bl	_inb
	lsl	x8, x0, x28
	and	x8, x8, x21
	lsl	x9, x24, #3
	ldr	x10, [x19, x9]
	orr	x8, x8, x10
	str	x8, [x19, x9]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.no_dead_strip	_ws16c48_gpio_get_multiple
.subsections_via_symbols
