	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vr41xx_gpio_set
_vr41xx_gpio_set:                       ## @vr41xx_gpio_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, (%rdi)
	jbe	LBB0_9
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %ebx
	cmpl	$16, %esi
	jae	LBB0_3
## %bb.2:
	movq	_GIUPIODL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$31, %ebx
	ja	LBB0_5
## %bb.4:
	addl	$-16, %ebx
	movq	_GIUPIODH@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	cmpl	$47, %ebx
	ja	LBB0_7
## %bb.6:
	addl	$-32, %ebx
	movq	_GIUPODATL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	addl	$-48, %ebx
	movq	_GIUPODATH@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r15d
	movq	_giu_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	%r15d, %edi
	callq	_giu_read
	movl	%eax, %esi
	btsl	%ebx, %esi
	btrl	%ebx, %eax
	testl	%r14d, %r14d
	cmovel	%eax, %esi
	movl	%r15d, %edi
	callq	_giu_write
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GIUPIODL,4,2                   ## @GIUPIODL
	.comm	_GIUPIODH,4,2                   ## @GIUPIODH
	.comm	_GIUPODATL,4,2                  ## @GIUPODATL
	.comm	_GIUPODATH,4,2                  ## @GIUPODATH
	.comm	_giu_lock,4,2                   ## @giu_lock
	.no_dead_strip	_vr41xx_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vr41xx_gpio_set
_vr41xx_gpio_set:                       ; @vr41xx_gpio_set
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.ls	LBB0_2
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x8, _GIUPIODL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIUPIODL@GOTPAGEOFF]
	sub	w9, w1, #48
Lloh2:
	adrp	x10, _GIUPODATH@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GIUPODATH@GOTPAGEOFF]
	sub	w11, w1, #32
Lloh4:
	adrp	x12, _GIUPODATL@GOTPAGE
Lloh5:
	ldr	x12, [x12, _GIUPODATL@GOTPAGEOFF]
	cmp	w1, #47
	csel	w9, w9, w11, hi
	csel	x10, x10, x12, hi
	sub	w11, w1, #16
Lloh6:
	adrp	x12, _GIUPIODH@GOTPAGE
Lloh7:
	ldr	x12, [x12, _GIUPIODH@GOTPAGEOFF]
	cmp	w1, #31
	csel	w9, w9, w11, hi
	csel	x10, x10, x12, hi
	cmp	w1, #16
	csel	w9, w1, w9, lo
	csel	x8, x8, x10, lo
	mov	w10, #1
	lsl	w22, w10, w9
	ldr	w20, [x8]
Lloh8:
	adrp	x21, _giu_lock@GOTPAGE
Lloh9:
	ldr	x21, [x21, _giu_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_giu_read
	orr	w8, w0, w22
	bic	w9, w0, w22
	cmp	w19, #0
	csel	w1, w9, w8, eq
	mov	x0, x20
	bl	_giu_write
	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	_spin_unlock_irqrestore
LBB0_2:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GIUPIODL,4,2                   ; @GIUPIODL
	.comm	_GIUPIODH,4,2                   ; @GIUPIODH
	.comm	_GIUPODATL,4,2                  ; @GIUPODATL
	.comm	_GIUPODATH,4,2                  ; @GIUPODATH
	.comm	_giu_lock,4,2                   ; @giu_lock
	.no_dead_strip	_vr41xx_gpio_set
.subsections_via_symbols
