	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_74x164_set_multiple
_gen_74x164_set_multiple:               ## @gen_74x164_set_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, %r14
	movq	%rsi, %r13
	callq	_gpiochip_get_data
	movq	%rax, %r12
	leaq	16(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movslq	(%r12), %r8
	testq	%r8, %r8
	je	LBB0_5
## %bb.1:
	leaq	-1(%r8), %rdx
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%edi
	decq	%rdx
	cmpl	%edi, %r8d
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ebx
	shrl	$3, %ebx
	movl	%edi, %ecx
	andl	$7, %ecx
	imull	%r9d, %ecx
	movq	(%r13,%rbx,8), %rsi
	shrq	%cl, %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, %rax
	notq	%rax
	movq	8(%r12), %r10
	andq	(%r10,%rdx,8), %rax
	movq	%rax, (%r10,%rdx,8)
	movq	(%r14,%rbx,8), %rbx
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rbx
	andq	%rsi, %rbx
	orq	%rax, %rbx
	movq	%rbx, (%r10,%rdx,8)
	jmp	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	callq	___gen_74x164_write_config
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.no_dead_strip	_gen_74x164_set_multiple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_74x164_set_multiple
_gen_74x164_set_multiple:               ; @gen_74x164_set_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	x20, x1
	bl	_gpiochip_get_data
	mov	x22, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.1:
	mov	w9, #0
	sub	w11, w8, #1
Lloh0:
	adrp	x10, _BITS_PER_BYTE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sbfiz	x11, x11, #3, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #1
	sub	x11, x11, #8
	cmp	w8, w9
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w9, #3
	and	w13, w9, #0x7
	mul	w13, w10, w13
	ldr	x14, [x20, w12, uxtw #3]
	lsr	x14, x14, x13
	cbz	x14, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x15, [x22, #8]
	ldr	x16, [x15, x11]
	bic	x16, x16, x14
	str	x16, [x15, x11]
	ldr	x12, [x19, x12, lsl #3]
	lsr	x12, x12, x13
	and	x12, x12, x14
	orr	x12, x12, x16
	str	x12, [x15, x11]
	b	LBB0_2
LBB0_5:
	mov	x0, x22
	bl	___gen_74x164_write_config
	mov	x0, x21
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.no_dead_strip	_gen_74x164_set_multiple
.subsections_via_symbols
