	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcove_irq_type
_wcove_irq_type:                        ## @wcove_irq_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %rcx
	movq	(%rbx), %rdx
	movq	_WCOVE_GPIO_NUM@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	jge	LBB0_4
## %bb.1:
	addl	$-128, %r14d
	cmpl	$4, %r14d
	jae	LBB0_2
## %bb.3:
	movslq	%r14d, %rdx
	leaq	l_switch.table.wcove_irq_type(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rcx)
	movq	_UPDATE_IRQ_TYPE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rcx)
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCOVE_GPIO_NUM,8,3             ## @WCOVE_GPIO_NUM
	.comm	_CTLI_INTCNT_DIS,4,2            ## @CTLI_INTCNT_DIS
	.comm	_CTLI_INTCNT_BE,4,2             ## @CTLI_INTCNT_BE
	.comm	_CTLI_INTCNT_PE,4,2             ## @CTLI_INTCNT_PE
	.comm	_CTLI_INTCNT_NE,4,2             ## @CTLI_INTCNT_NE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UPDATE_IRQ_TYPE,4,2            ## @UPDATE_IRQ_TYPE
	.no_dead_strip	_wcove_irq_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.wcove_irq_type
l_switch.table.wcove_irq_type:
	.quad	_CTLI_INTCNT_DIS
	.quad	_CTLI_INTCNT_PE
	.quad	_CTLI_INTCNT_NE
	.quad	_CTLI_INTCNT_BE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcove_irq_type
_wcove_irq_type:                        ; @wcove_irq_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	ldr	x9, [x20]
Lloh0:
	adrp	x10, _WCOVE_GPIO_NUM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WCOVE_GPIO_NUM@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_3
; %bb.1:
	sub	w9, w19, #128
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x10, l_switch.table.wcove_irq_type@PAGE
Lloh4:
	add	x10, x10, l_switch.table.wcove_irq_type@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
Lloh5:
	adrp	x10, _UPDATE_IRQ_TYPE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _UPDATE_IRQ_TYPE@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh7:
	ldr	w10, [x10]
	ldr	w11, [x8]
	orr	w10, w11, w10
	stp	w10, w9, [x8]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WCOVE_GPIO_NUM,8,3             ; @WCOVE_GPIO_NUM
	.comm	_CTLI_INTCNT_DIS,4,2            ; @CTLI_INTCNT_DIS
	.comm	_CTLI_INTCNT_BE,4,2             ; @CTLI_INTCNT_BE
	.comm	_CTLI_INTCNT_PE,4,2             ; @CTLI_INTCNT_PE
	.comm	_CTLI_INTCNT_NE,4,2             ; @CTLI_INTCNT_NE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UPDATE_IRQ_TYPE,4,2            ; @UPDATE_IRQ_TYPE
	.no_dead_strip	_wcove_irq_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.wcove_irq_type
l_switch.table.wcove_irq_type:
	.quad	_CTLI_INTCNT_DIS
	.quad	_CTLI_INTCNT_PE
	.quad	_CTLI_INTCNT_NE
	.quad	_CTLI_INTCNT_BE

.subsections_via_symbols
