	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_irq_sync_unlock
_wm831x_irq_sync_unlock:                ## @wm831x_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
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_WM831X_GPIO1_CONTROL@GOTPCREL(%rip), %r14
	movq	_WM831X_GPN_INT_MODE@GOTPCREL(%rip), %r12
	movq	_WM831X_GPN_POL@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	(%rdi,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movl	(%r13), %edx
	orl	(%r12), %edx
	movq	%r15, %rdi
	callq	_wm831x_set_bits
	movq	(%r15), %rdi
	movq	$0, (%rdi,%rbx,8)
	jmp	LBB0_4
LBB0_5:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_WM831X_INTERRUPT_STATUS_1_MASK@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
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movq	16(%r15), %rax
	movq	(%rdi,%rbx,8), %rcx
	cmpq	(%rax,%rbx,8), %rcx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	28(%r15), %edi
	movq	(%r12), %rdx
	addq	%rbx, %rdx
	movq	%r14, %rsi
	callq	_dev_dbg
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	(%rax,%rbx,8), %rdx
	movq	%rdx, (%rcx,%rbx,8)
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	(%rax,%rbx,8), %rdx
	movq	%r15, %rdi
	callq	_wm831x_reg_write
	movq	8(%r15), %rdi
	jmp	LBB0_9
LBB0_10:
	addq	$24, %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	_WM831X_GPIO1_CONTROL,8,3       ## @WM831X_GPIO1_CONTROL
	.comm	_WM831X_GPN_INT_MODE,4,2        ## @WM831X_GPN_INT_MODE
	.comm	_WM831X_GPN_POL,4,2             ## @WM831X_GPN_POL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ mask sync: %x = %x\n"

	.comm	_WM831X_INTERRUPT_STATUS_1_MASK,8,3 ## @WM831X_INTERRUPT_STATUS_1_MASK
	.no_dead_strip	_wm831x_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 wm831x_irq_sync_unlock
_wm831x_irq_sync_unlock:                ; @wm831x_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	x0, [x0]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x21, _WM831X_GPIO1_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WM831X_GPIO1_CONTROL@GOTPAGEOFF]
Lloh2:
	adrp	x22, _WM831X_GPN_INT_MODE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WM831X_GPN_INT_MODE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _WM831X_GPN_POL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _WM831X_GPN_POL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	x3, [x0, x20, lsl #3]
	cbz	x3, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	add	x1, x20, x8
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wm831x_set_bits
	ldr	x0, [x19]
	str	xzr, [x0, x20, lsl #3]
	b	LBB0_2
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, #0
Lloh6:
	adrp	x22, _WM831X_INTERRUPT_STATUS_1_MASK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _WM831X_INTERRUPT_STATUS_1_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x23, x21, #3
	ldp	x0, x8, [x19, #8]
	ldr	x3, [x0, x23]
	ldr	x8, [x8, x23]
	cmp	x3, x8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #28]
	ldr	x8, [x22]
	add	x2, x21, x8
	mov	x1, x20
	bl	_dev_dbg
	ldp	x8, x9, [x19, #8]
	ldr	x10, [x8, x23]
	str	x10, [x9, x23]
	ldr	x9, [x22]
	add	x1, x21, x9
	ldr	x2, [x8, x23]
	mov	x0, x19
	bl	_wm831x_reg_write
	ldr	x0, [x19, #8]
	b	LBB0_7
LBB0_10:
	add	x0, x19, #24
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WM831X_GPIO1_CONTROL,8,3       ; @WM831X_GPIO1_CONTROL
	.comm	_WM831X_GPN_INT_MODE,4,2        ; @WM831X_GPN_INT_MODE
	.comm	_WM831X_GPN_POL,4,2             ; @WM831X_GPN_POL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ mask sync: %x = %x\n"

	.comm	_WM831X_INTERRUPT_STATUS_1_MASK,8,3 ; @WM831X_INTERRUPT_STATUS_1_MASK
	.no_dead_strip	_wm831x_irq_sync_unlock
.subsections_via_symbols
