	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rc5t583_irq_sync_unlock
_rc5t583_irq_sync_unlock:               ## @rc5t583_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r15
	movq	24(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_gpedge_add@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	24(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	callq	_rc5t583_write
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %edi
	movq	(%r12), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_dev_warn
	jmp	LBB0_4
LBB0_5:
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_irq_en_add@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	callq	_rc5t583_write
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r15), %edi
	movq	(%r12), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_dev_warn
	jmp	LBB0_9
LBB0_10:
	movq	_RC5T583_INTC_INTEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	4(%r15), %edi
	movl	8(%r15), %edx
	callq	_rc5t583_write
	testl	%eax, %eax
	jns	LBB0_12
## %bb.11:
	movl	4(%r15), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_warn
LBB0_12:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gpedge_add,8,3                 ## @gpedge_add
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in writing reg 0x%02x error: %d\n"

	.comm	_irq_en_add,8,3                 ## @irq_en_add
	.comm	_RC5T583_INTC_INTEN,4,2         ## @RC5T583_INTC_INTEN
	.no_dead_strip	_rc5t583_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 rc5t583_irq_sync_unlock
_rc5t583_irq_sync_unlock:               ; @rc5t583_irq_sync_unlock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_irq_data_get_irq_chip_data
	mov	x19, x0
	ldr	x0, [x0, #24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x22, _gpedge_add@GOTPAGE
Lloh1:
	ldr	x22, [x22, _gpedge_add@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x0, [x19, #24]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	x8, [x22]
	lsl	x9, x21, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #24]
	ldr	w2, [x8, x9]
	bl	_rc5t583_write
	tbz	w0, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, x0
	ldr	w0, [x19, #4]
	ldr	x8, [x22]
	ldr	w2, [x8, x21, lsl #2]
	mov	x1, x20
	bl	_dev_warn
	b	LBB0_2
LBB0_5:
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, #0
Lloh4:
	adrp	x22, _irq_en_add@GOTPAGE
Lloh5:
	ldr	x22, [x22, _irq_en_add@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	x8, [x22]
	lsl	x9, x21, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x9]
	bl	_rc5t583_write
	tbz	w0, #31, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x3, x0
	ldr	w0, [x19, #4]
	ldr	x8, [x22]
	ldr	w2, [x8, x21, lsl #2]
	mov	x1, x20
	bl	_dev_warn
	b	LBB0_7
LBB0_10:
Lloh8:
	adrp	x20, _RC5T583_INTC_INTEN@GOTPAGE
Lloh9:
	ldr	x20, [x20, _RC5T583_INTC_INTEN@GOTPAGEOFF]
	ldr	w1, [x20]
	ldp	w0, w2, [x19, #4]
	bl	_rc5t583_write
	tbz	w0, #31, LBB0_12
; %bb.11:
	mov	x3, x0
	ldr	w0, [x19, #4]
	ldr	w2, [x20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_gpedge_add,8,3                 ; @gpedge_add
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in writing reg 0x%02x error: %d\n"

	.comm	_irq_en_add,8,3                 ; @irq_en_add
	.comm	_RC5T583_INTC_INTEN,4,2         ; @RC5T583_INTC_INTEN
	.no_dead_strip	_rc5t583_irq_sync_unlock
.subsections_via_symbols
