	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function its_irq_domain_free
_its_irq_domain_free:                   ## @its_irq_domain_free
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_irq_domain_get_irq_data
	movq	%rax, %rdi
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r13
	movq	24(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_irq_domain_get_irq_data
	movq	%rax, %rdi
	callq	_its_get_event_id
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_get_count_order
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %r14d
	movl	%eax, %edx
	callq	_bitmap_release_region
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_irq_domain_get_irq_data
	movq	%rax, %rdi
	callq	_irq_domain_reset_irq_data
	incl	%r15d
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpl	$0, 16(%r13)
	jne	LBB0_6
## %bb.4:
	movl	4(%r13), %esi
	movl	12(%r13), %edi
	callq	_bitmap_empty
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	12(%r13), %edi
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	callq	_its_lpi_free
	movl	(%r13), %edi
	callq	_kfree
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_its_send_mapd
	movq	%r13, %rdi
	callq	_its_free_device
LBB0_6:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_irq_domain_free_irqs_parent    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_its_irq_domain_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function its_irq_domain_free
_its_irq_domain_free:                   ; @its_irq_domain_free
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_irq_domain_get_irq_data
	bl	_irq_data_get_irq_chip_data
	mov	x23, x0
	ldr	x22, [x0, #24]
	ldr	w24, [x0, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_irq_domain_get_irq_data
	bl	_its_get_event_id
	mov	x25, x0
	mov	x0, x19
	bl	_get_count_order
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_bitmap_release_region
	cbz	w19, LBB0_3
; %bb.1:
	mov	x24, x20
	mov	x25, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_irq_domain_get_irq_data
	bl	_irq_domain_reset_irq_data
	add	w24, w24, #1
	subs	w25, w25, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x22
	bl	_mutex_lock
	ldr	w8, [x23, #16]
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	w0, [x23, #12]
	ldr	w1, [x23, #4]
	bl	_bitmap_empty
	cbz	x0, LBB0_6
; %bb.5:
	ldp	w1, w0, [x23, #8]
	ldr	w2, [x23, #4]
	bl	_its_lpi_free
	ldr	w0, [x23]
	bl	_kfree
	mov	x0, x23
	mov	w1, #0
	bl	_its_send_mapd
	mov	x0, x23
	bl	_its_free_device
LBB0_6:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_irq_domain_free_irqs_parent
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_its_irq_domain_free
.subsections_via_symbols
