	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_gpio_of_irq_setup
_at91_gpio_of_irq_setup:                ## @at91_gpio_of_irq_setup
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rsi), %edi
	callq	_irq_get_irq_data
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_irqd_to_hwirq
	movl	%eax, 40(%r15)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	_gpio_irq_ack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_gpio_irq_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	_gpio_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_gpio_irq_set_wake@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	32(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_PIO_IDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r15), %rsi
	movl	$-1, %edi
	callq	_writel_relaxed
	leaq	12(%r15), %r12
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r13d
	movl	16(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	8(%r15), %edi
	callq	_irq_get_handler_data
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.12:
	cmpq	$0, (%rcx)
	je	LBB0_10
## %bb.13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movl	8(%r15), %edx
	movq	_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_gpiochip_set_chained_irqchip
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_9:
	movq	%rax, %rcx
LBB0_10:
	movq	%r15, (%rcx)
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO"

	.comm	_gpio_irq_ack,4,2               ## @gpio_irq_ack
	.comm	_gpio_irq_mask,8,3              ## @gpio_irq_mask
	.comm	_gpio_irq_unmask,4,2            ## @gpio_irq_unmask
	.comm	_gpio_irq_set_wake,4,2          ## @gpio_irq_set_wake
	.comm	_PIO_IDR,8,3                    ## @PIO_IDR
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
L_.str.1:                               ## @.str.1
	.asciz	"at91_gpio.%d: Couldn't add irqchip to gpiochip.\n"

	.comm	_gpio_irq_handler,4,2           ## @gpio_irq_handler
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_at91_gpio_of_irq_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_gpio_of_irq_setup
_at91_gpio_of_irq_setup:                ; @at91_gpio_of_irq_setup
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	bl	_irq_get_irq_data
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x22
	bl	_irqd_to_hwirq
	str	w0, [x19, #40]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, _gpio_irq_ack@GOTPAGE
Lloh6:
	ldr	x9, [x9, _gpio_irq_ack@GOTPAGEOFF]
	str	x8, [x21]
Lloh7:
	ldr	w8, [x9]
	str	w8, [x21, #40]
Lloh8:
	adrp	x8, _gpio_irq_mask@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gpio_irq_mask@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	stp	x8, x8, [x21, #24]
Lloh11:
	adrp	x8, _gpio_irq_unmask@GOTPAGE
Lloh12:
	ldr	x8, [x8, _gpio_irq_unmask@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldp	x9, x8, [x19, #24]
Lloh14:
	adrp	x10, _PIO_IDR@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PIO_IDR@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	add	x1, x10, x9
Lloh17:
	adrp	x9, _gpio_irq_set_wake@GOTPAGE
Lloh18:
	ldr	x9, [x9, _gpio_irq_set_wake@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w8, w9, [x21, #8]
	mov	w0, #-1
	bl	_writel_relaxed
	add	x22, x19, #12
Lloh20:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh21:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	bl	_gpiochip_irqchip_add
	cbz	w0, LBB0_6
; %bb.2:
	mov	x23, x0
	ldr	w2, [x19, #16]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_5
LBB0_3:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	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
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_irq_get_handler_data
	cbz	x0, LBB0_10
; %bb.7:
	bl	_gpiochip_get_data
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x9, [x8]
	cbz	x9, LBB0_12
; %bb.9:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	ldr	w2, [x19, #8]
Lloh32:
	adrp	x8, _gpio_irq_handler@GOTPAGE
Lloh33:
	ldr	x8, [x8, _gpio_irq_handler@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_gpiochip_set_chained_irqchip
	mov	w23, #0
	b	LBB0_5
LBB0_11:
	mov	x8, x0
LBB0_12:
	mov	w23, #0
	str	x19, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO"

	.comm	_gpio_irq_ack,4,2               ; @gpio_irq_ack
	.comm	_gpio_irq_mask,8,3              ; @gpio_irq_mask
	.comm	_gpio_irq_unmask,4,2            ; @gpio_irq_unmask
	.comm	_gpio_irq_set_wake,4,2          ; @gpio_irq_set_wake
	.comm	_PIO_IDR,8,3                    ; @PIO_IDR
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
l_.str.1:                               ; @.str.1
	.asciz	"at91_gpio.%d: Couldn't add irqchip to gpiochip.\n"

	.comm	_gpio_irq_handler,4,2           ; @gpio_irq_handler
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_at91_gpio_of_irq_setup
.subsections_via_symbols
