	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiochip_unlock_as_irq         ## -- Begin function gpiochip_unlock_as_irq
	.p2align	4, 0x90
_gpiochip_unlock_as_irq:                ## @gpiochip_unlock_as_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
	callq	_gpiochip_get_desc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_FLAG_USED_AS_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_FLAG_IRQ_IS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_desc_set_label                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_USED_AS_IRQ,4,2           ## @FLAG_USED_AS_IRQ
	.comm	_FLAG_IRQ_IS_ENABLED,4,2        ## @FLAG_IRQ_IS_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiochip_unlock_as_irq         ; -- Begin function gpiochip_unlock_as_irq
	.p2align	2
_gpiochip_unlock_as_irq:                ; @gpiochip_unlock_as_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
	bl	_gpiochip_get_desc
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _FLAG_USED_AS_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_USED_AS_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_clear_bit
Lloh3:
	adrp	x8, _FLAG_IRQ_IS_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAG_IRQ_IS_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	ldr	x0, [x19]
	cbz	x0, LBB0_1
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_1
; %bb.4:
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_desc_set_label
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_USED_AS_IRQ,4,2           ; @FLAG_USED_AS_IRQ
	.comm	_FLAG_IRQ_IS_ENABLED,4,2        ; @FLAG_IRQ_IS_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt"

.subsections_via_symbols
