	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grgpio_irq_unmap
_grgpio_irq_unmap:                      ## @grgpio_irq_unmap
	.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, %r12d
	movq	(%rdi), %r15
	movl	(%r15), %r13d
	movl	%esi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_irq_set_chip_and_handler
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_irq_set_chip_data
	leaq	4(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.1:
	movq	16(%r15), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%r14,%rbx,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_2
LBB0_4:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_grgpio_set_imask
	movl	$0, (%r14,%rbx,8)
	movl	4(%r14,%rbx,8), %r12d
	movl	%r12d, %edi
	shrl	$31, %edi
	callq	_WARN_ON
	testl	%r12d, %r12d
	js	LBB0_8
## %bb.6:
	addq	%rbx, %rbx
	movq	8(%r15), %rax
	movslq	4(%r14,%rbx,4), %rcx
	shlq	$4, %rcx
	decq	(%rax,%rcx)
	jne	LBB0_8
## %bb.7:
	movl	8(%rax,%rcx), %edi
	movq	%r15, %rsi
	callq	_free_irq
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_grgpio_irq_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grgpio_irq_unmap
_grgpio_irq_unmap:                      ; @grgpio_irq_unmap
	.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
	ldr	x20, [x0]
	mov	x19, x20
	ldr	w22, [x19], #4
	mov	x0, x1
	mov	x1, #0
	mov	x2, #0
	bl	_irq_set_chip_and_handler
	mov	x0, x21
	mov	x1, #0
	bl	_irq_set_chip_data
	mov	x0, x19
	bl	_spin_lock_irqsave
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x1, #0
	ldr	x8, [x20, #16]
	add	x23, x8, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x23, #-4]
	cmp	w8, w21
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x1, #1
	add	x23, x23, #8
	cmp	x22, x1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #1
	bl	_WARN_ON
LBB0_5:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
LBB0_6:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	bl	_grgpio_set_imask
	stur	wzr, [x23, #-4]
	ldr	w21, [x23]
	lsr	w0, w21, #31
	bl	_WARN_ON
	tbnz	w21, #31, LBB0_5
; %bb.7:
	ldr	x8, [x20, #8]
	ldrsw	x9, [x23]
	lsl	x10, x9, #4
	ldr	x11, [x8, x10]
	subs	x11, x11, #1
	str	x11, [x8, x10]
	b.ne	LBB0_5
; %bb.8:
	add	x8, x8, x9, lsl #4
	ldr	w0, [x8, #8]
	mov	x1, x20
	bl	_free_irq
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_grgpio_irq_unmap
.subsections_via_symbols
