	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsta_alloc_irq_chip
_gsta_alloc_irq_chip:                   ## @gsta_alloc_irq_chip
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %ecx
	movl	4(%rdi), %edi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %r8d
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, %edx
	callq	_devm_irq_alloc_generic_chip
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 24(%rax)
	movq	16(%rax), %rax
	movq	_gsta_irq_type@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_gsta_irq_disable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_gsta_irq_enable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	4(%r15), %edi
	movq	_IRQ_NOREQUEST@GOTPCREL(%rip), %rax
	movq	_IRQ_NOPROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_devm_irq_setup_generic_chip
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_GSTA_NR_GPIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	jle	LBB0_4
## %bb.5:
	movq	16(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	$4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r15), %r12
	leal	(%r14,%r12), %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rcx, %r13
	callq	_irq_set_chip_and_handler
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_irq_set_chip_data
	movq	_IRQ_NOPROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQ_NOREQUEST@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%ebx, %edi
	callq	_irq_clear_status_flags
	movq	%r13, %rcx
	incq	%r14
	cmpl	(%r13), %r14d
	jl	LBB0_6
## %bb.7:
	leaq	(%r12,%r14), %rcx
	decq	%rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_4:
	xorl	%ecx, %ecx
LBB0_8:
	subq	(%rbx), %rcx
	movq	%rcx, 8(%rbx)
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gsta_irq_type,4,2              ## @gsta_irq_type
	.comm	_gsta_irq_disable,4,2           ## @gsta_irq_disable
	.comm	_gsta_irq_enable,4,2            ## @gsta_irq_enable
	.comm	_IRQ_NOREQUEST,4,2              ## @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ## @IRQ_NOPROBE
	.comm	_GSTA_NR_GPIO,4,2               ## @GSTA_NR_GPIO
	.no_dead_strip	_gsta_alloc_irq_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsta_alloc_irq_chip
_gsta_alloc_irq_chip:                   ; @gsta_alloc_irq_chip
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w0, [x0, #4]
	ldr	w3, [x19]
	ldr	w4, [x19, #8]
Lloh3:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	w2, #1
	bl	_devm_irq_alloc_generic_chip
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #24]
	ldr	x8, [x0, #16]
Lloh6:
	adrp	x9, _gsta_irq_type@GOTPAGE
Lloh7:
	ldr	x9, [x9, _gsta_irq_type@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x8, #12]
Lloh9:
	adrp	x9, _gsta_irq_disable@GOTPAGE
Lloh10:
	ldr	x9, [x9, _gsta_irq_disable@GOTPAGEOFF]
Lloh11:
	adrp	x10, _gsta_irq_enable@GOTPAGE
Lloh12:
	ldr	x10, [x10, _gsta_irq_enable@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #4]
Lloh15:
	adrp	x23, _IRQ_NOREQUEST@GOTPAGE
Lloh16:
	ldr	x23, [x23, _IRQ_NOREQUEST@GOTPAGEOFF]
	ldr	w0, [x19, #4]
	ldr	w8, [x23]
Lloh17:
	adrp	x24, _IRQ_NOPROBE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _IRQ_NOPROBE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w4, w9, w8
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	w5, #0
	bl	_devm_irq_setup_generic_chip
	cbnz	w0, LBB0_9
; %bb.2:
Lloh19:
	adrp	x25, _GSTA_NR_GPIO@GOTPAGE
Lloh20:
	ldr	x25, [x25, _GSTA_NR_GPIO@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x26, #0
	ldr	x27, [x20, #16]
	add	x21, x27, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x28, [x19]
	add	w22, w26, w28
	ldr	w2, [x27]
	mov	x0, x22
	mov	x1, x21
	bl	_irq_set_chip_and_handler
	mov	x0, x22
	mov	x1, x20
	bl	_irq_set_chip_data
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_irq_clear_status_flags
	ldr	w8, [x25]
	add	x26, x26, #1
	cmp	w26, w8
	b.lt	LBB0_4
; %bb.5:
	add	x8, x28, x26
	sub	x8, x8, #1
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	x8, #0
LBB0_8:
	mov	w0, #0
	ldr	x9, [x20]
	sub	x8, x8, x9
	str	x8, [x20, #8]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gsta_irq_type,4,2              ; @gsta_irq_type
	.comm	_gsta_irq_disable,4,2           ; @gsta_irq_disable
	.comm	_gsta_irq_enable,4,2            ; @gsta_irq_enable
	.comm	_IRQ_NOREQUEST,4,2              ; @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ; @IRQ_NOPROBE
	.comm	_GSTA_NR_GPIO,4,2               ; @GSTA_NR_GPIO
	.no_dead_strip	_gsta_alloc_irq_chip
.subsections_via_symbols
