	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_irq_sync_unlock
_ab8500_irq_sync_unlock:                ## @ab8500_irq_sync_unlock
	.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
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r15
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	movq	_AB8500_IT_MASK1_REG@GOTPCREL(%rip), %r12
	movq	_AB8500_INTERRUPT@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_is_ab8500_1p1_or_earlier
	testq	%rax, %rax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	(%rcx,%rbx,8), %r14
	cmpq	(%rax,%rbx,8), %r14
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	cmpl	$11, %edx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%edx, %edx
	jns	LBB0_7
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	testl	%edx, %edx
	js	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	%r14, (%rax,%rbx,8)
	addl	(%r12), %edx
	movl	(%r13), %esi
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_set_register_interruptible
	jmp	LBB0_8
LBB0_9:
	leaq	36(%r15), %rdi
	callq	_atomic_dec
	addq	$32, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AB8500_IT_MASK1_REG,4,2        ## @AB8500_IT_MASK1_REG
	.comm	_AB8500_INTERRUPT,4,2           ## @AB8500_INTERRUPT
	.no_dead_strip	_ab8500_irq_sync_unlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_irq_sync_unlock
_ab8500_irq_sync_unlock:                ; @ab8500_irq_sync_unlock
	.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
	bl	_irq_data_get_irq_chip_data
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x22, _AB8500_IT_MASK1_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AB8500_IT_MASK1_REG@GOTPAGEOFF]
Lloh2:
	adrp	x23, _AB8500_INTERRUPT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AB8500_INTERRUPT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_is_ab8500_1p1_or_earlier
	cbz	x0, LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x21, #3
	ldp	x9, x10, [x19, #8]
	ldr	x9, [x9, x8]
	ldr	x20, [x10, x8]
	cmp	x20, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w8, #11
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w8, #31, LBB0_8
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x21, lsl #2]
	tbnz	w8, #31, LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #8]
	str	x20, [x9, x21, lsl #3]
	ldr	w9, [x22]
	add	w2, w9, w8
	ldr	w1, [x23]
	mov	x0, x19
	mov	x3, x20
	bl	_set_register_interruptible
	b	LBB0_3
LBB0_9:
	add	x0, x19, #36
	bl	_atomic_dec
	add	x0, x19, #32
	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	_mutex_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AB8500_IT_MASK1_REG,4,2        ; @AB8500_IT_MASK1_REG
	.comm	_AB8500_INTERRUPT,4,2           ; @AB8500_INTERRUPT
	.no_dead_strip	_ab8500_irq_sync_unlock
.subsections_via_symbols
