	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcmgpio_set_irq_type
_npcmgpio_set_irq_type:                 ## @npcmgpio_set_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	%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, %ebx
	movq	%rdi, %r12
	callq	_irq_data_get_irq_chip_data
	movl	%eax, %edi
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movl	12(%r12), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	8(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r15d, %edx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	8(%r14), %rdi
	movq	_NPCM7XX_GP_N_POL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_8:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	8(%r14), %rdi
	movq	_NPCM7XX_GP_N_POL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	jmp	LBB0_9
LBB0_2:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	8(%r14), %rbx
	movq	_NPCM7XX_GP_N_EVBE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_npcm_gpio_clr
	movq	_NPCM7XX_GP_N_POL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
LBB0_9:
	movl	%r15d, %edx
	callq	_npcm_gpio_clr
	jmp	LBB0_10
LBB0_3:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	8(%r14), %rbx
	movq	_NPCM7XX_GP_N_EVBE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_npcm_gpio_clr
	movq	_NPCM7XX_GP_N_POL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_6
LBB0_4:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	8(%r14), %rdi
	movq	_NPCM7XX_GP_N_EVBE@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rsi
	addq	(%r14), %rsi
LBB0_6:
	movl	%r15d, %edx
	callq	_npcm_gpio_set
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	_NPCM7XX_GP_N_EVTYP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%r15d, %edx
	callq	_npcm_gpio_clr
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_irq_set_handler_locked
	xorl	%r13d, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %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_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setirqtype: %u.%u = %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"edge.rising\n"

	.comm	_NPCM7XX_GP_N_EVBE,8,3          ## @NPCM7XX_GP_N_EVBE
	.comm	_NPCM7XX_GP_N_POL,8,3           ## @NPCM7XX_GP_N_POL
L_.str.2:                               ## @.str.2
	.asciz	"edge.falling\n"

L_.str.3:                               ## @.str.3
	.asciz	"edge.both\n"

L_.str.4:                               ## @.str.4
	.asciz	"level.low\n"

L_.str.5:                               ## @.str.5
	.asciz	"level.high\n"

L_.str.6:                               ## @.str.6
	.asciz	"invalid irq type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NPCM7XX_GP_N_EVTYP,8,3         ## @NPCM7XX_GP_N_EVTYP
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.no_dead_strip	_npcmgpio_set_irq_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcmgpio_set_irq_type
_npcmgpio_set_irq_type:                 ; @npcmgpio_set_irq_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x1
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x20, x0
	ldr	w0, [x19, #12]
	bl	_BIT
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	stp	x8, x22, [sp, #8]
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	ldr	x8, [x0], #8
Lloh6:
	adrp	x9, _NPCM7XX_GP_N_POL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NPCM7XX_GP_N_POL@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	ldr	x8, [x0], #8
Lloh15:
	adrp	x9, _NPCM7XX_GP_N_POL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NPCM7XX_GP_N_POL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	add	x22, x20, #8
	ldr	x8, [x20]
Lloh20:
	adrp	x9, _NPCM7XX_GP_N_EVBE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NPCM7XX_GP_N_EVBE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	mov	x2, x21
	bl	_npcm_gpio_clr
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _NPCM7XX_GP_N_POL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NPCM7XX_GP_N_POL@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
LBB0_6:
	mov	x2, x21
	bl	_npcm_gpio_clr
	b	LBB0_11
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	add	x22, x20, #8
	ldr	x8, [x20]
Lloh28:
	adrp	x9, _NPCM7XX_GP_N_EVBE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NPCM7XX_GP_N_EVBE@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	mov	x2, x21
	bl	_npcm_gpio_clr
	ldr	x8, [x20]
Lloh31:
	adrp	x9, _NPCM7XX_GP_N_POL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NPCM7XX_GP_N_POL@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	ldr	x8, [x0], #8
Lloh36:
	adrp	x9, _NPCM7XX_GP_N_EVBE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _NPCM7XX_GP_N_EVBE@GOTPAGEOFF]
LBB0_9:
	ldr	x9, [x9]
	add	x1, x9, x8
LBB0_10:
	mov	x2, x21
	bl	_npcm_gpio_set
LBB0_11:
	ldr	x8, [x20], #8
Lloh38:
	adrp	x9, _NPCM7XX_GP_N_EVTYP@GOTPAGE
Lloh39:
	ldr	x9, [x9, _NPCM7XX_GP_N_EVTYP@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	mov	x2, x21
	bl	_npcm_gpio_clr
Lloh41:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh42:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_handler_locked
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setirqtype: %u.%u = %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"edge.rising\n"

	.comm	_NPCM7XX_GP_N_EVBE,8,3          ; @NPCM7XX_GP_N_EVBE
	.comm	_NPCM7XX_GP_N_POL,8,3           ; @NPCM7XX_GP_N_POL
l_.str.2:                               ; @.str.2
	.asciz	"edge.falling\n"

l_.str.3:                               ; @.str.3
	.asciz	"edge.both\n"

l_.str.4:                               ; @.str.4
	.asciz	"level.low\n"

l_.str.5:                               ; @.str.5
	.asciz	"level.high\n"

l_.str.6:                               ; @.str.6
	.asciz	"invalid irq type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NPCM7XX_GP_N_EVTYP,8,3         ; @NPCM7XX_GP_N_EVTYP
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.no_dead_strip	_npcmgpio_set_irq_type
.subsections_via_symbols
