	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssi_cleanup_gdd
_ssi_cleanup_gdd:                       ## @ssi_cleanup_gdd
	.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	%rsi, %r13
	callq	_hsi_controller_drvdata
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_hsi_get_port
	movq	%rax, %rdi
	callq	_hsi_port_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SSI_MAX_GDD_LCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rcx
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	btsl	%ebx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rcx
	movq	$0, (%rcx,%rbx,8)
	movq	_SSI_MAX_GDD_LCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	%eax, %edx
	cmpq	%rdx, %rbx
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %r14
	testq	%r14, %r14
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, 8(%r14)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %r12
	movl	%ebx, %edi
	callq	_SSI_GDD_CCR_REG
	addq	%rax, %r12
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_writew_relaxed
	movq	(%r14), %rax
	movq	_HSI_MSG_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_7
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	movq	_SSI_GDD_MPU_IRQ_ENABLE_REG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%r15), %rdi
	callq	_readl_relaxed
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	(%r15), %rsi
	callq	_writel_relaxed
	movq	_SSI_GDD_MPU_IRQ_STATUS_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SSI_MAX_GDD_LCH,4,2            ## @SSI_MAX_GDD_LCH
	.comm	_HSI_MSG_READ,8,3               ## @HSI_MSG_READ
	.comm	_SSI_GDD_MPU_IRQ_ENABLE_REG,8,3 ## @SSI_GDD_MPU_IRQ_ENABLE_REG
	.comm	_SSI_GDD_MPU_IRQ_STATUS_REG,8,3 ## @SSI_GDD_MPU_IRQ_STATUS_REG
	.no_dead_strip	_ssi_cleanup_gdd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssi_cleanup_gdd
_ssi_cleanup_gdd:                       ; @ssi_cleanup_gdd
	.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	x21, x1
	bl	_hsi_controller_drvdata
	mov	x19, x0
	mov	x0, x21
	bl	_hsi_get_port
	bl	_hsi_port_drvdata
Lloh0:
	adrp	x24, _SSI_MAX_GDD_LCH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SSI_MAX_GDD_LCH@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x22, x0
	mov	x23, #0
	mov	w20, #0
	ldr	x9, [x19, #8]
	mov	w25, #1
Lloh2:
	adrp	x26, _HSI_MSG_READ@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HSI_MSG_READ@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w25, w23
	orr	w20, w8, w20
	ldr	x9, [x19, #8]
	str	xzr, [x9, x23, lsl #3]
	ldr	w8, [x24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x9, x23, lsl #3]
	cbz	x27, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x27, #8]
	cmp	x10, x21
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x19, #16]
	mov	x0, x23
	bl	_SSI_GDD_CCR_REG
	add	x1, x0, x28
	mov	w0, #0
	bl	_writew_relaxed
	ldr	x8, [x27]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x22]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_2
LBB0_8:
	mov	w20, #0
LBB0_9:
	ldr	x8, [x19]
Lloh4:
	adrp	x21, _SSI_GDD_MPU_IRQ_ENABLE_REG@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SSI_GDD_MPU_IRQ_ENABLE_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	bic	w0, w0, w20
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _SSI_GDD_MPU_IRQ_STATUS_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSI_GDD_MPU_IRQ_STATUS_REG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	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
	b	_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SSI_MAX_GDD_LCH,4,2            ; @SSI_MAX_GDD_LCH
	.comm	_HSI_MSG_READ,8,3               ; @HSI_MSG_READ
	.comm	_SSI_GDD_MPU_IRQ_ENABLE_REG,8,3 ; @SSI_GDD_MPU_IRQ_ENABLE_REG
	.comm	_SSI_GDD_MPU_IRQ_STATUS_REG,8,3 ; @SSI_GDD_MPU_IRQ_STATUS_REG
	.no_dead_strip	_ssi_cleanup_gdd
.subsections_via_symbols
