	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function u300_gpio_irq_enable
_u300_gpio_irq_enable:                  ## @u300_gpio_irq_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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	8(%rax), %rcx
	movl	(%rbx), %ebx
	movl	%ebx, %edx
	sarl	$3, %edx
	movslq	%edx, %rdx
	movl	(%rax), %edi
	movl	(%rcx,%rdx,4), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%ebx, %r8d
	callq	_dev_dbg
	callq	_local_irq_save
	movq	_ien@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_U300_PIN_REG
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_U300_PIN_BIT
	orl	%eax, %r14d
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_U300_PIN_REG
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_writel
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable IRQ for hwirq %lu on port %s, offset %d\n"

	.comm	_ien,4,2                        ## @ien
	.no_dead_strip	_u300_gpio_irq_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function u300_gpio_irq_enable
_u300_gpio_irq_enable:                  ; @u300_gpio_irq_enable
	.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	x19, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	ldr	x8, [x0, #8]
	ldr	w19, [x19]
	asr	w9, w19, #3
	ldr	w0, [x0]
	ldr	w3, [x8, w9, sxtw #2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x4, x19
	bl	_dev_dbg
	bl	_local_irq_save
Lloh2:
	adrp	x21, _ien@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ien@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_U300_PIN_REG
	bl	_readl
	mov	x20, x0
	mov	x0, x19
	bl	_U300_PIN_BIT
	orr	w20, w0, w20
	ldr	w1, [x21]
	mov	x0, x19
	bl	_U300_PIN_REG
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	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	_local_irq_restore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable IRQ for hwirq %lu on port %s, offset %d\n"

	.comm	_ien,4,2                        ; @ien
	.no_dead_strip	_u300_gpio_irq_enable
.subsections_via_symbols
