	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_gpio_irq_set_type
_iproc_gpio_irq_set_type:               ## @iproc_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
	pushq	%rax
	.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, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_1
## %bb.2:
	movl	(%rbx), %r14d
	cltq
	leaq	l_switch.table.iproc_gpio_irq_set_type(%rip), %rcx
	movl	(%rcx,%rax,4), %r12d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	leaq	l_switch.table.iproc_gpio_irq_set_type.2(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	l_switch.table.iproc_gpio_irq_set_type.3(%rip), %rcx
	movl	(%rcx,%rax,4), %r13d
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_raw_spin_lock_irqsave
	movq	_IPROC_GPIO_INT_TYPE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_iproc_set_bit
	movq	_IPROC_GPIO_INT_DE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_iproc_set_bit
	movq	_IPROC_GPIO_INT_EDGE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_iproc_set_bit
	movq	%rbx, %rdi
	callq	_raw_spin_unlock_irqrestore
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid GPIO IRQ type 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPROC_GPIO_INT_TYPE_OFFSET,4,2 ## @IPROC_GPIO_INT_TYPE_OFFSET
	.comm	_IPROC_GPIO_INT_DE_OFFSET,4,2   ## @IPROC_GPIO_INT_DE_OFFSET
	.comm	_IPROC_GPIO_INT_EDGE_OFFSET,4,2 ## @IPROC_GPIO_INT_EDGE_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"gpio:%u level_triggered:%d dual_edge:%d rising_or_high:%d\n"

	.no_dead_strip	_iproc_gpio_irq_set_type
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.iproc_gpio_irq_set_type
l_switch.table.iproc_gpio_irq_set_type:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.p2align	2                               ## @switch.table.iproc_gpio_irq_set_type.2
l_switch.table.iproc_gpio_irq_set_type.2:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1

	.p2align	2                               ## @switch.table.iproc_gpio_irq_set_type.3
l_switch.table.iproc_gpio_irq_set_type.3:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_gpio_irq_set_type
_iproc_gpio_irq_set_type:               ; @iproc_gpio_irq_set_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x19, x0
Lloh0:
	adrp	x8, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w21
	sub	w8, w8, #128
	cmp	w8, #5
	b.hs	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #2, #32
Lloh3:
	adrp	x9, l_switch.table.iproc_gpio_irq_set_type@PAGE
Lloh4:
	add	x9, x9, l_switch.table.iproc_gpio_irq_set_type@PAGEOFF
	ldr	w21, [x9, x8]
Lloh5:
	adrp	x9, l_switch.table.iproc_gpio_irq_set_type.2@PAGE
Lloh6:
	add	x9, x9, l_switch.table.iproc_gpio_irq_set_type.2@PAGEOFF
	ldr	w22, [x9, x8]
	ldr	w20, [x20]
Lloh7:
	adrp	x9, l_switch.table.iproc_gpio_irq_set_type.3@PAGE
Lloh8:
	add	x9, x9, l_switch.table.iproc_gpio_irq_set_type.3@PAGEOFF
	ldr	w23, [x9, x8]
	add	x24, x19, #4
	mov	x0, x24
	bl	_raw_spin_lock_irqsave
Lloh9:
	adrp	x8, _IPROC_GPIO_INT_TYPE_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPROC_GPIO_INT_TYPE_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_iproc_set_bit
Lloh12:
	adrp	x8, _IPROC_GPIO_INT_DE_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPROC_GPIO_INT_DE_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	bl	_iproc_set_bit
Lloh15:
	adrp	x8, _IPROC_GPIO_INT_EDGE_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPROC_GPIO_INT_EDGE_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x23
	bl	_iproc_set_bit
	mov	x0, x24
	bl	_raw_spin_unlock_irqrestore
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid GPIO IRQ type 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPROC_GPIO_INT_TYPE_OFFSET,4,2 ; @IPROC_GPIO_INT_TYPE_OFFSET
	.comm	_IPROC_GPIO_INT_DE_OFFSET,4,2   ; @IPROC_GPIO_INT_DE_OFFSET
	.comm	_IPROC_GPIO_INT_EDGE_OFFSET,4,2 ; @IPROC_GPIO_INT_EDGE_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"gpio:%u level_triggered:%d dual_edge:%d rising_or_high:%d\n"

	.no_dead_strip	_iproc_gpio_irq_set_type
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.iproc_gpio_irq_set_type
l_switch.table.iproc_gpio_irq_set_type:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.p2align	2                               ; @switch.table.iproc_gpio_irq_set_type.2
l_switch.table.iproc_gpio_irq_set_type.2:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1

	.p2align	2                               ; @switch.table.iproc_gpio_irq_set_type.3
l_switch.table.iproc_gpio_irq_set_type.3:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
