	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asic3_gpio_irq_type
_asic3_gpio_irq_type:                   ## @asic3_gpio_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
	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, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r13
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_asic3_irq_to_bank
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_asic3_irq_to_index
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$1, %r12d
	movl	%eax, %ecx
	shll	%cl, %r12d
	leaq	12(%r13), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_raw_spin_lock_irqsave
	movq	_ASIC3_GPIO_LEVEL_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	callq	_asic3_read_register
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ASIC3_GPIO_EDGE_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	callq	_asic3_read_register
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ASIC3_GPIO_TRIGGER_TYPE@GOTPCREL(%rip), %rax
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	addl	(%rax), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_asic3_read_register
	movl	$-2, %r14d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %r14d
	movq	(%r13), %rcx
	movl	(%r15), %edx
	subl	8(%r13), %edx
	sarl	$4, %edx
	movslq	%edx, %rdx
	andl	%r14d, (%rcx,%rdx,4)
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_2
## %bb.1:
	orl	%r12d, %eax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	orl	%r12d, %r14d
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rsi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_7
## %bb.3:
	orl	%r12d, %eax
	andl	%r14d, %r15d
	movl	%r15d, %r14d
LBB0_4:
	movl	%eax, %r12d
LBB0_5:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_6:
	movq	_ASIC3_GPIO_LEVEL_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	addl	%ebx, %esi
	movq	%r13, %rdi
	callq	_asic3_write_register
	movq	_ASIC3_GPIO_EDGE_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_asic3_write_register
	movq	_ASIC3_GPIO_TRIGGER_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_asic3_write_register
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_raw_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_IRQ_TYPE_EDGE_BOTH@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	movl	%r12d, %ebx
	jne	LBB0_9
## %bb.8:
	orl	%ebx, %eax
	movq	%r13, %rdi
	addq	$20, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %esi
	subl	8(%r13), %esi
	movl	%eax, %r12d
	callq	_asic3_gpio_get
	andl	%r15d, %r14d
	orl	%ebx, %r15d
	testq	%rax, %rax
	cmovnel	%r14d, %r15d
	movl	%r15d, %r14d
	movq	(%r13), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	subl	8(%r13), %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	orl	%ebx, (%rax,%rcx,4)
	jmp	LBB0_5
LBB0_9:
	movq	_IRQ_TYPE_LEVEL_LOW@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_11
## %bb.10:
	andl	%r14d, %eax
	movl	%eax, %r12d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	andl	%r14d, %edx
	jmp	LBB0_14
LBB0_11:
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_13
## %bb.12:
	andl	%r14d, %eax
	movl	%eax, %r12d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	orl	%ebx, %edx
	jmp	LBB0_14
LBB0_13:
	movl	16(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %r12d
	callq	_dev_notice
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_14:
	movl	%r15d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ASIC3_GPIO_LEVEL_TRIGGER,4,2   ## @ASIC3_GPIO_LEVEL_TRIGGER
	.comm	_ASIC3_GPIO_EDGE_TRIGGER,4,2    ## @ASIC3_GPIO_EDGE_TRIGGER
	.comm	_ASIC3_GPIO_TRIGGER_TYPE,4,2    ## @ASIC3_GPIO_TRIGGER_TYPE
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ## @IRQ_TYPE_EDGE_BOTH
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ## @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq type not changed\n"

	.no_dead_strip	_asic3_gpio_irq_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asic3_gpio_irq_type
_asic3_gpio_irq_type:                   ; @asic3_gpio_irq_type
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x1
	mov	x25, x0
	bl	_irq_data_get_irq_chip_data
	mov	x19, x0
	ldr	w1, [x25]
	bl	_asic3_irq_to_bank
	mov	x20, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_asic3_irq_to_index
	mov	w8, #1
	lsl	w28, w8, w0
	add	x21, x19, #12
	mov	x0, x21
	bl	_raw_spin_lock_irqsave
Lloh0:
	adrp	x27, _ASIC3_GPIO_LEVEL_TRIGGER@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ASIC3_GPIO_LEVEL_TRIGGER@GOTPAGEOFF]
	ldr	w8, [x27]
	add	w1, w8, w20
	mov	x0, x19
	bl	_asic3_read_register
	mov	x22, x0
Lloh2:
	adrp	x8, _ASIC3_GPIO_EDGE_TRIGGER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASIC3_GPIO_EDGE_TRIGGER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w1, w8, w20
	mov	x0, x19
	bl	_asic3_read_register
	mov	x24, x0
Lloh5:
	adrp	x8, _ASIC3_GPIO_TRIGGER_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASIC3_GPIO_TRIGGER_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w1, w8, w20
	mov	x0, x19
	bl	_asic3_read_register
	mov	x23, x0
	ldr	x8, [x19]
	ldr	w9, [x25]
	ldr	w10, [x19, #8]
	sub	w9, w9, w10
	asr	w9, w9, #4
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x8, x9]
	bic	w10, w10, w28
	str	w10, [x8, x9]
Lloh8:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_2
; %bb.1:
	orr	w23, w23, w28
	orr	w24, w24, w28
	b	LBB0_12
LBB0_2:
	mvn	w27, w28
Lloh11:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_4
; %bb.3:
	orr	w23, w23, w28
	and	w24, w24, w27
	b	LBB0_11
LBB0_4:
Lloh14:
	adrp	x8, _IRQ_TYPE_EDGE_BOTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_BOTH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_6
; %bb.5:
	orr	w23, w23, w28
	add	x0, x19, #20
	ldr	w8, [x25]
	ldr	w9, [x19, #8]
	sub	w1, w8, w9
	bl	_asic3_gpio_get
	and	w8, w24, w27
	orr	w9, w24, w28
	cmp	x0, #0
	csel	w24, w9, w8, eq
	ldr	x8, [x19]
	ldr	w9, [x25]
	ldr	w10, [x19, #8]
	sub	w9, w9, w10
	asr	w9, w9, #4
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x8, x9]
	orr	w10, w10, w28
	str	w10, [x8, x9]
	b	LBB0_11
LBB0_6:
Lloh17:
	adrp	x8, _IRQ_TYPE_LEVEL_LOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_LOW@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_8
; %bb.7:
	and	w23, w23, w27
	and	w22, w22, w27
	b	LBB0_11
LBB0_8:
Lloh20:
	adrp	x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_10
; %bb.9:
	and	w23, w23, w27
	orr	w22, w22, w28
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19, #16]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_notice
LBB0_11:
Lloh25:
	adrp	x27, _ASIC3_GPIO_LEVEL_TRIGGER@GOTPAGE
Lloh26:
	ldr	x27, [x27, _ASIC3_GPIO_LEVEL_TRIGGER@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x27]
	add	w1, w8, w20
	mov	x0, x19
	mov	x2, x22
	bl	_asic3_write_register
Lloh27:
	adrp	x8, _ASIC3_GPIO_EDGE_TRIGGER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ASIC3_GPIO_EDGE_TRIGGER@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	add	w1, w8, w20
	mov	x0, x19
	mov	x2, x24
	bl	_asic3_write_register
Lloh30:
	adrp	x8, _ASIC3_GPIO_TRIGGER_TYPE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ASIC3_GPIO_TRIGGER_TYPE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	add	w1, w8, w20
	mov	x0, x19
	mov	x2, x23
	bl	_asic3_write_register
	mov	x0, x21
	bl	_raw_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ASIC3_GPIO_LEVEL_TRIGGER,4,2   ; @ASIC3_GPIO_LEVEL_TRIGGER
	.comm	_ASIC3_GPIO_EDGE_TRIGGER,4,2    ; @ASIC3_GPIO_EDGE_TRIGGER
	.comm	_ASIC3_GPIO_TRIGGER_TYPE,4,2    ; @ASIC3_GPIO_TRIGGER_TYPE
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ; @IRQ_TYPE_EDGE_BOTH
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ; @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq type not changed\n"

	.no_dead_strip	_asic3_gpio_irq_type
.subsections_via_symbols
