	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm831x_free_irq                ## -- Begin function wm831x_free_irq
	.p2align	4, 0x90
_wm831x_free_irq:                       ## @wm831x_free_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_WM831X_NUM_IRQS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_mutex_lock
	movq	_wm831x_irqs@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%ebx, %edx
	shlq	$4, %rdx
	movq	$0, 8(%rcx,%rdx)
	movq	(%rax), %rax
	movq	$0, (%rax,%rdx)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	___wm831x_disable_irq
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM831X_NUM_IRQS,4,2            ## @WM831X_NUM_IRQS
	.comm	_wm831x_irqs,8,3                ## @wm831x_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm831x_free_irq                ; -- Begin function wm831x_free_irq
	.p2align	2
_wm831x_free_irq:                       ; @wm831x_free_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _WM831X_NUM_IRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM831X_NUM_IRQS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ls	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
Lloh3:
	adrp	x8, _wm831x_irqs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wm831x_irqs@GOTPAGEOFF]
	ldr	x9, [x8]
	mov	w10, w20
	lsl	x10, x10, #4
	add	x9, x9, x10
	str	xzr, [x9, #8]
	ldr	x8, [x8]
	str	xzr, [x8, x10]
	mov	x0, x19
	mov	x1, x20
	bl	___wm831x_disable_irq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WM831X_NUM_IRQS,4,2            ; @WM831X_NUM_IRQS
	.comm	_wm831x_irqs,8,3                ; @wm831x_irqs
.subsections_via_symbols
