	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_irq_mask
_ab8500_irq_mask:                       ## @ab8500_irq_mask
	.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
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movl	(%rbx), %edx
	leal	7(%rdx), %edi
	testl	%edx, %edx
	cmovnsl	%edx, %edi
	sarl	$3, %edi
	movl	%edx, %ecx
	andb	$7, %cl
	movl	$1, %esi
	shll	%cl, %esi
	movq	(%rax), %rax
	movslq	%edi, %rdi
	movl	(%rax,%rdi,4), %ebx
	btsl	%ecx, %ebx
	movl	%ebx, (%rax,%rdi,4)
	movq	_AB8500_INT_GPIO6R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jl	LBB0_3
## %bb.1:
	movq	_AB8500_INT_GPIO41R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jg	LBB0_3
## %bb.2:
	orl	%esi, 8(%rax,%rdi,4)
LBB0_3:
	movq	_AB9540_INT_GPIO50R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jl	LBB0_6
## %bb.4:
	movq	_AB9540_INT_GPIO54R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jg	LBB0_6
## %bb.5:
	orl	%esi, 4(%rax,%rdi,4)
LBB0_6:
	movq	_AB8540_INT_GPIO43R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	je	LBB0_8
## %bb.7:
	movq	_AB8540_INT_GPIO44R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_9
LBB0_8:
	addl	%esi, %esi
	orl	%esi, %ebx
	movl	%ebx, (%rax,%rdi,4)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AB8500_INT_GPIO6R,4,2          ## @AB8500_INT_GPIO6R
	.comm	_AB8500_INT_GPIO41R,4,2         ## @AB8500_INT_GPIO41R
	.comm	_AB9540_INT_GPIO50R,4,2         ## @AB9540_INT_GPIO50R
	.comm	_AB9540_INT_GPIO54R,4,2         ## @AB9540_INT_GPIO54R
	.comm	_AB8540_INT_GPIO43R,4,2         ## @AB8540_INT_GPIO43R
	.comm	_AB8540_INT_GPIO44R,4,2         ## @AB8540_INT_GPIO44R
	.no_dead_strip	_ab8500_irq_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_irq_mask
_ab8500_irq_mask:                       ; @ab8500_irq_mask
	.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
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	ldr	w8, [x19]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w11, w9, w8, lt
	asr	w12, w11, #3
	and	x9, x8, #0x7
	mov	w10, #1
	lsl	w10, w10, w9
	ldr	x9, [x0]
	sbfiz	x13, x12, #2, #32
	ldr	w12, [x9, x13]
	sbfx	x11, x11, #3, #29
	orr	w12, w12, w10
	str	w12, [x9, x13]
Lloh0:
	adrp	x13, _AB8500_INT_GPIO6R@GOTPAGE
Lloh1:
	ldr	x13, [x13, _AB8500_INT_GPIO6R@GOTPAGEOFF]
Lloh2:
	ldr	w13, [x13]
Lloh3:
	adrp	x14, _AB8500_INT_GPIO41R@GOTPAGE
Lloh4:
	ldr	x14, [x14, _AB8500_INT_GPIO41R@GOTPAGEOFF]
Lloh5:
	ldr	w14, [x14]
	cmp	w8, w13
	ccmp	w8, w14, #0, ge
	b.gt	LBB0_2
; %bb.1:
	add	x13, x9, x11, lsl #2
	ldr	w14, [x13, #8]
	orr	w14, w14, w10
	str	w14, [x13, #8]
LBB0_2:
Lloh6:
	adrp	x13, _AB9540_INT_GPIO50R@GOTPAGE
Lloh7:
	ldr	x13, [x13, _AB9540_INT_GPIO50R@GOTPAGEOFF]
Lloh8:
	ldr	w13, [x13]
Lloh9:
	adrp	x14, _AB9540_INT_GPIO54R@GOTPAGE
Lloh10:
	ldr	x14, [x14, _AB9540_INT_GPIO54R@GOTPAGEOFF]
Lloh11:
	ldr	w14, [x14]
	cmp	w8, w13
	ccmp	w8, w14, #0, ge
	b.gt	LBB0_4
; %bb.3:
	add	x13, x9, x11, lsl #2
	ldr	w14, [x13, #4]
	orr	w14, w14, w10
	str	w14, [x13, #4]
LBB0_4:
Lloh12:
	adrp	x13, _AB8540_INT_GPIO43R@GOTPAGE
Lloh13:
	ldr	x13, [x13, _AB8540_INT_GPIO43R@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
Lloh15:
	adrp	x14, _AB8540_INT_GPIO44R@GOTPAGE
Lloh16:
	ldr	x14, [x14, _AB8540_INT_GPIO44R@GOTPAGEOFF]
Lloh17:
	ldr	w14, [x14]
	cmp	w8, w13
	ccmp	w8, w14, #4, ne
	b.ne	LBB0_6
; %bb.5:
	orr	w8, w12, w10, lsl #1
	str	w8, [x9, x11, lsl #2]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AB8500_INT_GPIO6R,4,2          ; @AB8500_INT_GPIO6R
	.comm	_AB8500_INT_GPIO41R,4,2         ; @AB8500_INT_GPIO41R
	.comm	_AB9540_INT_GPIO50R,4,2         ; @AB9540_INT_GPIO50R
	.comm	_AB9540_INT_GPIO54R,4,2         ; @AB9540_INT_GPIO54R
	.comm	_AB8540_INT_GPIO43R,4,2         ; @AB8540_INT_GPIO43R
	.comm	_AB8540_INT_GPIO44R,4,2         ; @AB8540_INT_GPIO44R
	.no_dead_strip	_ab8500_irq_mask
.subsections_via_symbols
