	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grgpio_irq_map
_grgpio_irq_map:                        ## @grgpio_irq_map
	.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	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movl	%esi, %r12d
	movq	16(%r14), %r15
	movslq	%edx, %rcx
	movq	%rcx, %rbx
	shlq	$4, %rbx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dev_dbg
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	%r12d, 8(%r15,%rbx)
	movq	8(%r14), %rcx
	movq	(%r15,%rbx), %r13
	shlq	$4, %r13
	leaq	(%rcx,%r13), %rbx
	movq	(%rcx,%r13), %rax
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	incq	%rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_irq_set_chip_data
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_grgpio_irq_chip@GOTPCREL(%rip), %rsi
	movl	%r12d, %edi
	callq	_irq_set_chip_and_handler
	movl	%r12d, %edi
	callq	_irq_set_noprobe
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_3:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rcx, %r12
	movl	8(%rcx,%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_grgpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%r14), %edi
	callq	_dev_name
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movl	%eax, %r15d
	leaq	(%r12,%r13), %rax
	addq	$8, %rax
	movl	4(%r14), %edi
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mapping irq %d for gpio line %d\n"

	.comm	_grgpio_irq_handler,4,2         ## @grgpio_irq_handler
L_.str.1:                               ## @.str.1
	.asciz	"Could not request underlying irq %d\n"

	.comm	_grgpio_irq_chip,4,2            ## @grgpio_irq_chip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.no_dead_strip	_grgpio_irq_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grgpio_irq_map
_grgpio_irq_map:                        ; @grgpio_irq_map
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x3, x2
	mov	x19, x1
	ldr	x8, [x20, #16]
	add	x21, x8, w2, sxtw #4
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	w19, [x21, #8]
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x23, x8, x9, lsl #4
	ldr	x8, [x23]
	cbz	x8, LBB0_4
LBB0_2:
	add	x8, x8, #1
	str	x8, [x23]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	bl	_irq_set_chip_data
Lloh2:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh3:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, _grgpio_irq_chip@GOTPAGE
Lloh6:
	ldr	x1, [x1, _grgpio_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	bl	_irq_set_chip_and_handler
	mov	x0, x19
	bl	_irq_set_noprobe
	mov	w21, #0
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
	mov	x24, x23
	ldr	w21, [x24, #8]!
Lloh10:
	adrp	x8, _grgpio_irq_handler@GOTPAGE
Lloh11:
	ldr	x8, [x8, _grgpio_irq_handler@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	ldr	w0, [x20, #4]
	bl	_dev_name
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_7
; %bb.5:
	mov	x21, x0
	ldr	w0, [x20, #4]
	ldr	w2, [x24]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_6:
	mov	x0, x21
	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_7:
	ldr	x8, [x23]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mapping irq %d for gpio line %d\n"

	.comm	_grgpio_irq_handler,4,2         ; @grgpio_irq_handler
l_.str.1:                               ; @.str.1
	.asciz	"Could not request underlying irq %d\n"

	.comm	_grgpio_irq_chip,4,2            ; @grgpio_irq_chip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.no_dead_strip	_grgpio_irq_map
.subsections_via_symbols
