	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs5535_gpio_setup_event        ## -- Begin function cs5535_gpio_setup_event
	.p2align	4, 0x90
_cs5535_gpio_setup_event:               ## @cs5535_gpio_setup_event
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movl	%edi, %ebx
	cmpl	$23, %edi
	jbe	LBB0_2
## %bb.1:
	movq	_GPIO_MAP_W@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	cmpl	$15, %ebx
	jbe	LBB0_4
## %bb.3:
	movq	_GPIO_MAP_Z@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	cmpl	$8, %ebx
	jb	LBB0_5
## %bb.6:
	movq	_GPIO_MAP_Y@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_GPIO_MAP_X@GOTPCREL(%rip), %rax
LBB0_7:
	shll	$2, %ebx
	movl	(%rax), %r13d
	movq	_cs5535_gpio_chip@GOTPCREL(%rip), %r14
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	(%r14), %edi
	addl	%r13d, %edi
	callq	_inl
	movl	$15, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	movl	%ebx, %edx
	andb	$28, %dl
	notl	%esi
	andl	$7, %r15d
	shll	%cl, %r15d
	orb	$3, %dl
	movl	$1, %edi
	movl	%edx, %ecx
	shll	%cl, %edi
	andl	%eax, %esi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovel	%eax, %edi
	orl	%r15d, %edi
	orl	%esi, %edi
	addl	(%r14), %r13d
	movl	%r13d, %esi
	callq	_outl
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cs5535_gpio_chip,8,2           ## @cs5535_gpio_chip
	.comm	_GPIO_MAP_W,4,2                 ## @GPIO_MAP_W
	.comm	_GPIO_MAP_Z,4,2                 ## @GPIO_MAP_Z
	.comm	_GPIO_MAP_Y,4,2                 ## @GPIO_MAP_Y
	.comm	_GPIO_MAP_X,4,2                 ## @GPIO_MAP_X
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs5535_gpio_setup_event        ; -- Begin function cs5535_gpio_setup_event
	.p2align	2
_cs5535_gpio_setup_event:               ; @cs5535_gpio_setup_event
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GPIO_MAP_W@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_MAP_W@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GPIO_MAP_Z@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GPIO_MAP_Z@GOTPAGEOFF]
Lloh4:
	adrp	x10, _GPIO_MAP_X@GOTPAGE
Lloh5:
	ldr	x10, [x10, _GPIO_MAP_X@GOTPAGEOFF]
Lloh6:
	adrp	x11, _GPIO_MAP_Y@GOTPAGE
Lloh7:
	ldr	x11, [x11, _GPIO_MAP_Y@GOTPAGEOFF]
	cmp	w0, #7
	csel	x10, x11, x10, hi
	cmp	w0, #15
	csel	x9, x9, x10, hi
	cmp	w0, #23
	csel	x8, x8, x9, hi
	ubfiz	w23, w0, #2, #3
	ldr	w24, [x8]
Lloh8:
	adrp	x25, _cs5535_gpio_chip@GOTPAGE
Lloh9:
	ldr	x25, [x25, _cs5535_gpio_chip@GOTPAGEOFF]
	add	x22, x25, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x25]
	add	w0, w8, w24
	bl	_inl
	mov	w8, #15
	lsl	w8, w8, w23
	bic	w8, w0, w8
	and	w9, w20, #0x7
	lsl	w9, w9, w23
	mov	w10, #3
	bfi	w10, w21, #2, #3
	mov	w11, #1
	lsl	w10, w11, w10
	cmp	w19, #0
	csel	w10, wzr, w10, eq
	orr	w9, w10, w9
	orr	w0, w9, w8
	ldr	w8, [x25]
	add	w1, w8, w24
	bl	_outl
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.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	_cs5535_gpio_chip,8,2           ; @cs5535_gpio_chip
	.comm	_GPIO_MAP_W,4,2                 ; @GPIO_MAP_W
	.comm	_GPIO_MAP_Z,4,2                 ; @GPIO_MAP_Z
	.comm	_GPIO_MAP_Y,4,2                 ; @GPIO_MAP_Y
	.comm	_GPIO_MAP_X,4,2                 ; @GPIO_MAP_X
.subsections_via_symbols
