	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thunderx_gpio_set_multiple
_thunderx_gpio_set_multiple:            ## @thunderx_gpio_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_gpiochip_get_data
	cmpl	$-63, (%rbx)
	jl	LBB0_3
## %bb.1:
	movq	%rax, %r13
	xorl	%r14d, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rbx
	movq	(%r15,%r14,8), %rcx
	movq	%rcx, %rdi
	andq	%rbx, %rdi
	notq	%rbx
	andq	%rcx, %rbx
	movq	_GPIO_2ND_BANK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%r14d, %r15
	imulq	%r15, %rcx
	movq	_GPIO_TX_SET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	addq	(%r13), %rsi
	addq	%rcx, %rsi
	callq	_writeq
	movq	_GPIO_2ND_BANK@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	%r15, %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_GPIO_TX_CLR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r13), %rsi
	addq	%rax, %rsi
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_writeq
	movl	(%rbx), %eax
	leal	63(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	leaq	1(%r14), %rdx
	sarl	$6, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r14
	movq	%rdx, %r14
	jl	LBB0_2
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_2ND_BANK,4,2              ## @GPIO_2ND_BANK
	.comm	_GPIO_TX_SET,8,3                ## @GPIO_TX_SET
	.comm	_GPIO_TX_CLR,8,3                ## @GPIO_TX_CLR
	.no_dead_strip	_thunderx_gpio_set_multiple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thunderx_gpio_set_multiple
_thunderx_gpio_set_multiple:            ; @thunderx_gpio_set_multiple
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x0
	bl	_gpiochip_get_data
	ldr	w8, [x21]
	cmn	w8, #63
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x24, #0
Lloh0:
	adrp	x25, _GPIO_2ND_BANK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GPIO_2ND_BANK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _GPIO_TX_SET@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GPIO_TX_SET@GOTPAGEOFF]
Lloh4:
	adrp	x27, _GPIO_TX_CLR@GOTPAGE
Lloh5:
	ldr	x27, [x27, _GPIO_TX_CLR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x24, #3
	ldr	x9, [x19, x8]
	ldr	x8, [x20, x8]
	and	x0, x8, x9
	bic	x23, x8, x9
	ldr	x8, [x22]
	ldrsw	x9, [x25]
	sxtw	x28, w24
	ldr	x10, [x26]
	add	x8, x10, x8
	madd	x1, x9, x28, x8
	bl	_writeq
	ldr	x8, [x22]
	ldrsw	x9, [x25]
	ldr	x10, [x27]
	add	x8, x10, x8
	madd	x1, x9, x28, x8
	mov	x0, x23
	bl	_writeq
	ldr	w8, [x21]
	add	w9, w8, #63
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #6
	cmp	x24, w8, sxtw
	add	x24, x24, #1
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_2ND_BANK,4,2              ; @GPIO_2ND_BANK
	.comm	_GPIO_TX_SET,8,3                ; @GPIO_TX_SET
	.comm	_GPIO_TX_CLR,8,3                ; @GPIO_TX_CLR
	.no_dead_strip	_thunderx_gpio_set_multiple
.subsections_via_symbols
