	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dln2_irq_bus_unlock
_dln2_irq_bus_unlock:                   ## @dln2_irq_bus_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
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_irqd_to_hwirq
	movl	%eax, %r14d
	movl	16(%r12), %esi
	movl	%eax, %edi
	callq	_test_bit
	movl	%eax, %ebx
	movl	20(%r12), %esi
	movl	%r14d, %edi
	callq	_test_bit
	cmpl	%eax, %ebx
	je	LBB0_6
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movslq	%r14d, %rcx
	movq	_DLN2_GPIO_EVENT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	andl	(%rax,%rcx,4), %r15d
	movl	16(%r12), %esi
	movl	%r14d, %edi
	callq	_set_bit
	jmp	LBB0_4
LBB0_3:
	movq	_DLN2_GPIO_EVENT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	16(%r12), %esi
	movl	%r14d, %edi
	callq	_clear_bit
LBB0_4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_dln2_gpio_set_event_cfg
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	12(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_6:
	addq	$8, %r12
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DLN2_GPIO_EVENT_MASK,4,2       ## @DLN2_GPIO_EVENT_MASK
	.comm	_DLN2_GPIO_EVENT_NONE,4,2       ## @DLN2_GPIO_EVENT_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set event\n"

	.no_dead_strip	_dln2_irq_bus_unlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dln2_irq_bus_unlock
_dln2_irq_bus_unlock:                   ; @dln2_irq_bus_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
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x19, x0
	mov	x0, x20
	bl	_irqd_to_hwirq
	mov	x20, x0
	ldr	w1, [x19, #16]
	bl	_test_bit
	mov	x21, x0
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_test_bit
	cmp	w21, w0
	b.eq	LBB0_6
; %bb.1:
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	w8, [x8, w20, sxtw #2]
Lloh0:
	adrp	x9, _DLN2_GPIO_EVENT_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DLN2_GPIO_EVENT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w21, w9, w8
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_set_bit
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _DLN2_GPIO_EVENT_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DLN2_GPIO_EVENT_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_clear_bit
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	bl	_dln2_gpio_set_event_cfg
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
	add	x0, x19, #8
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DLN2_GPIO_EVENT_MASK,4,2       ; @DLN2_GPIO_EVENT_MASK
	.comm	_DLN2_GPIO_EVENT_NONE,4,2       ; @DLN2_GPIO_EVENT_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set event\n"

	.no_dead_strip	_dln2_irq_bus_unlock
.subsections_via_symbols
