	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiochip_enable_irq            ## -- Begin function gpiochip_enable_irq
	.p2align	4, 0x90
_gpiochip_enable_irq:                   ## @gpiochip_enable_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_gpiochip_get_desc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_FLAG_USED_AS_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_FLAG_IS_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_WARN_ON
	movq	_FLAG_IRQ_IS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_USED_AS_IRQ,4,2           ## @FLAG_USED_AS_IRQ
	.comm	_FLAG_IS_OUT,4,2                ## @FLAG_IS_OUT
	.comm	_FLAG_IRQ_IS_ENABLED,4,2        ## @FLAG_IRQ_IS_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiochip_enable_irq            ; -- Begin function gpiochip_enable_irq
	.p2align	2
_gpiochip_enable_irq:                   ; @gpiochip_enable_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
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FLAG_USED_AS_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_USED_AS_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _FLAG_IS_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAG_IS_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	bl	_WARN_ON
Lloh6:
	adrp	x8, _FLAG_IRQ_IS_ENABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLAG_IRQ_IS_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_bit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_USED_AS_IRQ,4,2           ; @FLAG_USED_AS_IRQ
	.comm	_FLAG_IS_OUT,4,2                ; @FLAG_IS_OUT
	.comm	_FLAG_IRQ_IS_ENABLED,4,2        ; @FLAG_IRQ_IS_ENABLED
.subsections_via_symbols
