	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htcpld_setup_chip_irq
_htcpld_setup_chip_irq:                 ## @htcpld_setup_chip_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_platform_get_drvdata
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,8), %ebx
	movl	4(%rax,%rcx,8), %r12d
	leal	(%r12,%rbx), %edx
	cmpl	%edx, %ebx
	jae	LBB0_3
## %bb.1:
	leaq	(%rax,%rcx,8), %r14
	movq	_IRQ_NOREQUEST@GOTPCREL(%rip), %r13
	movq	_IRQ_NOPROBE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	_htcpld_muxed_chip@GOTPCREL(%rip), %rsi
	callq	_irq_set_chip_and_handler
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_irq_set_chip_data
	movl	(%r15), %esi
	orl	(%r13), %esi
	movl	%ebx, %edi
	callq	_irq_clear_status_flags
	incl	%ebx
	decl	%r12d
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_htcpld_muxed_chip,4,2          ## @htcpld_muxed_chip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQ_NOREQUEST,4,2              ## @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ## @IRQ_NOPROBE
	.no_dead_strip	_htcpld_setup_chip_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htcpld_setup_chip_irq
_htcpld_setup_chip_irq:                 ; @htcpld_setup_chip_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	bl	_platform_get_drvdata
	ldr	x8, [x0]
	add	x19, x8, w19, sxtw #3
	ldp	w20, w22, [x19]
	add	w8, w22, w20
	cmp	w20, w8
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x23, _handle_simple_irq@GOTPAGE
Lloh1:
	ldr	x23, [x23, _handle_simple_irq@GOTPAGEOFF]
Lloh2:
	adrp	x21, _htcpld_muxed_chip@GOTPAGE
Lloh3:
	ldr	x21, [x21, _htcpld_muxed_chip@GOTPAGEOFF]
Lloh4:
	adrp	x24, _IRQ_NOREQUEST@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IRQ_NOREQUEST@GOTPAGEOFF]
Lloh6:
	adrp	x25, _IRQ_NOPROBE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IRQ_NOPROBE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_irq_set_chip_and_handler
	mov	x0, x20
	mov	x1, x19
	bl	_irq_set_chip_data
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_irq_clear_status_flags
	add	w20, w20, #1
	subs	w22, w22, #1
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_htcpld_muxed_chip,4,2          ; @htcpld_muxed_chip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQ_NOREQUEST,4,2              ; @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ; @IRQ_NOPROBE
	.no_dead_strip	_htcpld_setup_chip_irq
.subsections_via_symbols
