	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgpio_get_multiple_be
_bgpio_get_multiple_be:                 ## @bgpio_get_multiple_be
	.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, %r15
	movq	%rdi, %r12
	movq	(%rsi), %rax
	notq	%rax
	andq	%rax, (%rdx)
	movl	(%rdi), %esi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_find_next_bit
	cmpl	(%r12), %eax
	jge	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_bgpio_line2mask
	orq	%rax, %r13
	movl	(%r12), %esi
	incl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_find_next_bit
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jl	LBB0_2
LBB0_3:
	movl	16(%r12), %edi
	callq	*8(%r12)
	andq	%r13, %rax
	movq	%rax, -48(%rbp)
	movl	(%r12), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_find_next_bit
	cmpl	(%r12), %eax
	jge	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_bgpio_line2mask
	orq	%rax, (%r14)
	movl	(%r12), %esi
	incl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_find_next_bit
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jl	LBB0_5
LBB0_6:
	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	_bgpio_get_multiple_be
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgpio_get_multiple_be
_bgpio_get_multiple_be:                 ; @bgpio_get_multiple_be
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x1]
	ldr	x9, [x2]
	bic	x8, x9, x8
	str	x8, [x2]
	ldr	w1, [x0]
	mov	x0, x21
	mov	w2, #0
	bl	_find_next_bit
	ldr	w8, [x20]
	cmp	w0, w8
	b.ge	LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_bgpio_line2mask
	orr	x23, x0, x23
	ldr	w1, [x20]
	add	w2, w22, #1
	mov	x0, x21
	bl	_find_next_bit
	mov	x22, x0
	ldr	w8, [x20]
	cmp	w0, w8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x23, #0
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	w0, [x20, #16]
	blr	x8
	and	x8, x0, x23
	str	x8, [sp, #8]
	ldr	w1, [x20]
	add	x0, sp, #8
	mov	w2, #0
	bl	_find_next_bit
	ldr	w8, [x20]
	cmp	w0, w8
	b.ge	LBB0_7
; %bb.5:
	mov	x21, x0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_bgpio_line2mask
	ldr	x8, [x19]
	orr	x8, x8, x0
	str	x8, [x19]
	ldr	w1, [x20]
	add	w2, w21, #1
	add	x0, sp, #8
	bl	_find_next_bit
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w0, w8
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bgpio_get_multiple_be
.subsections_via_symbols
