	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_gpio_irq_set_type
_msm_gpio_irq_set_type:                 ## @msm_gpio_irq_set_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movq	(%r13), %rax
	leaq	(%rax,%rax,2), %r12
	leaq	(%r15,%r12,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_raw_spin_lock_irqsave
	movq	(%r13), %rdi
	movl	4(%rbx), %esi
	cmpl	$132, %r14d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.1:
	cmpl	$1, (%r15,%r12,8)
	jne	LBB0_3
## %bb.2:
	callq	_set_bit
	jmp	LBB0_4
LBB0_3:
	callq	_clear_bit
LBB0_4:
	movq	%rbx, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_msm_readl_intr_target
	movb	4(%r15,%r12,8), %cl
	movl	$7, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movl	8(%r15,%r12,8), %edi
	shll	%cl, %edi
	orl	%edx, %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_msm_writel_intr_target
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_msm_readl_intr_cfg
	movl	%eax, %r14d
	movl	12(%r15,%r12,8), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movl	(%r13), %eax
	cmpl	$1, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$2, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_12
## %bb.6:
	movl	16(%r15,%r12,8), %ecx
	movl	20(%r15,%r12,8), %edi
	movl	$3, %eax
	shll	%cl, %eax
	movl	%eax, %edx
	btsl	%edi, %edx
	notl	%edx
	andl	%edx, %ebx
	leal	-129(%r14), %edx
	cmpl	$3, %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	ja	LBB0_20
## %bb.7:
	leaq	LJTI0_1(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmpq	*%rdx
LBB0_8:
	btsl	%ecx, %ebx
	jmp	LBB0_17
LBB0_9:
	movl	16(%r15,%r12,8), %edi
	movl	20(%r15,%r12,8), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	btsl	%edi, %eax
	notl	%eax
	andl	%eax, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	leal	-129(%r14), %eax
	cmpl	$3, %eax
	ja	LBB0_13
## %bb.10:
	leaq	(%r15,%r12,8), %r15
	addq	$20, %r15
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmpq	*%rax
LBB0_11:
	callq	_BIT
	movq	%r14, %r12
	movl	%eax, %r14d
	orl	%ebx, %r14d
	movl	(%r15), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movq	%r12, %r14
	jmp	LBB0_20
LBB0_12:
	xorl	%eax, %eax
	callq	_BUG
LBB0_13:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_15:
	movl	$2, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
LBB0_16:
	orl	%eax, %ebx
LBB0_17:
	callq	_BIT
	orl	%eax, %ebx
	jmp	LBB0_21
LBB0_18:
	movl	%ecx, %edi
LBB0_19:
	callq	_BIT
	orl	%eax, %ebx
LBB0_20:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_21:
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_msm_writel_intr_cfg
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movl	4(%r13), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_msm_gpio_update_dual_edge_pos
LBB0_23:
	movq	%r13, %rdi
	callq	_raw_spin_unlock_irqrestore
	testb	$-127, %r14b
	je	LBB0_25
## %bb.24:
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_25:
	testb	$-125, %r14b
	je	LBB0_28
## %bb.26:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_irq_set_handler_locked
LBB0_28:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_11
	.long	L0_0_set_19
	.long	L0_0_set_11
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
LJTI0_1:
	.long	L0_1_set_17
	.long	L0_1_set_8
	.long	L0_1_set_15
	.long	L0_1_set_16
	.end_data_region
                                        ## -- End function
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.no_dead_strip	_msm_gpio_irq_set_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_gpio_irq_set_type
_msm_gpio_irq_set_type:                 ; @msm_gpio_irq_set_type
	.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	x20, x1
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	ldr	x25, [x19]
	mov	w8, #24
	madd	x22, x25, x8, x24
	bl	_raw_spin_lock_irqsave
	ldr	x0, [x19]
	ldr	w1, [x21, #4]
	cmp	w20, #132
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	bl	_set_bit
	b	LBB0_4
LBB0_3:
	bl	_clear_bit
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	bl	_msm_readl_intr_target
	mov	w8, #24
	madd	x26, x25, x8, x24
	mov	w8, #7
	ldp	w9, w10, [x26, #4]
	lsl	w8, w8, w9
	bic	w8, w0, w8
	lsl	w9, w10, w9
	orr	w0, w8, w9
	mov	x1, x21
	mov	x2, x22
	bl	_msm_writel_intr_target
	mov	x0, x21
	mov	x1, x22
	bl	_msm_readl_intr_cfg
	mov	x23, x0
	ldr	w0, [x26, #12]
	bl	_BIT
	orr	w23, w0, w23
	ldr	w8, [x22]
	cmp	w8, #1
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #2
	b.ne	LBB0_12
; %bb.6:
	mov	w8, #24
	madd	x9, x25, x8, x24
	mov	w10, #3
	ldp	w8, w0, [x9, #16]
	lsl	w9, w10, w8
	mov	w10, #1
	lsl	w10, w10, w0
	orr	w10, w10, w9
	bic	w23, w23, w10
	sub	w10, w20, #129
	cmp	w10, #3
	b.hi	LBB0_21
; %bb.7:
Lloh0:
	adrp	x11, lJTI0_1@PAGE
Lloh1:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x12, LBB0_8
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_8:
	mov	w9, #1
	b	LBB0_15
LBB0_9:
	mov	w8, #24
	madd	x24, x25, x8, x24
	ldr	w8, [x24, #20]!
	ldur	w0, [x24, #-4]
	mov	w9, #1
	lsl	w10, w9, w0
	lsl	w9, w9, w8
	orr	w9, w9, w10
	bic	w23, w23, w9
	sub	w9, w20, #129
	cmp	w9, #3
	b.hi	LBB0_21
; %bb.10:
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_11
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BIT
	orr	w23, w0, w23
	ldr	w0, [x24]
	b	LBB0_18
LBB0_12:
	bl	_BUG
	b	LBB0_21
LBB0_13:
                                        ; kill: def $w0 killed $w0 killed $x0
	b	LBB0_20
LBB0_14:
	mov	w9, #2
LBB0_15:
	lsl	w8, w9, w8
	orr	w23, w23, w8
	b	LBB0_17
LBB0_16:
	orr	w23, w23, w9
LBB0_17:
                                        ; kill: def $w0 killed $w0 killed $x0
LBB0_18:
	bl	_BIT
	orr	w23, w23, w0
	b	LBB0_21
LBB0_19:
	mov	x0, x8
LBB0_20:
	bl	_BIT
	orr	w23, w0, w23
LBB0_21:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_msm_writel_intr_cfg
	ldr	x0, [x19]
	ldr	w1, [x21, #4]
	bl	_test_bit
	cbz	x0, LBB0_23
; %bb.22:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_msm_gpio_update_dual_edge_pos
LBB0_23:
	mov	x0, x21
	bl	_raw_spin_unlock_irqrestore
	mov	w8, #129
	tst	w20, w8
	b.eq	LBB0_25
; %bb.24:
Lloh4:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
	b	LBB0_27
LBB0_25:
	mov	w8, #131
	tst	w20, w8
	b.eq	LBB0_28
; %bb.26:
Lloh6:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
LBB0_27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_handler_locked
LBB0_28:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
lJTI0_1:
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
                                        ; -- End function
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.no_dead_strip	_msm_gpio_irq_set_type
.subsections_via_symbols
