	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpc_release_ctlr
_hpc_release_ctlr:                      ## @hpc_release_ctlr
	.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
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	movq	_CON_PFAULT_SERR_MASK@GOTPCREL(%rip), %r12
	movq	_SLOT_REG_RSVDZ_MASK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_SLOT_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_shpc_readl
	movq	_PRSNT_CHANGE_INTR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ISO_PFAULT_INTR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BUTTON_PRESS_INTR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MRL_CHANGE_INTR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CON_PFAULT_INTR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MRL_CHANGE_SERR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r12), %eax
	movl	(%r13), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r15d, %edi
	callq	_SLOT_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_shpc_writel
	incl	%r15d
	cmpl	(%r14), %r15d
	jl	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_cleanup_slots
	movq	_SERR_INTR_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_shpc_readl
	movq	_GLOBAL_INTR_MASK@GOTPCREL(%rip), %rcx
	movq	_GLOBAL_SERR_MASK@GOTPCREL(%rip), %rdx
	movq	_COMMAND_INTR_MASK@GOTPCREL(%rip), %rsi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movq	_ARBITER_SERR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SERR_INTR_RSVDZ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_shpc_writel
	movq	_shpchp_poll_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	24(%r14), %rdi
	callq	_del_timer
	jmp	LBB0_6
LBB0_5:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	16(%r14), %rdi
	callq	_pci_disable_msi
LBB0_6:
	movl	12(%r14), %edi
	callq	_iounmap
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_release_mem_region             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PRSNT_CHANGE_INTR_MASK,4,2     ## @PRSNT_CHANGE_INTR_MASK
	.comm	_ISO_PFAULT_INTR_MASK,4,2       ## @ISO_PFAULT_INTR_MASK
	.comm	_BUTTON_PRESS_INTR_MASK,4,2     ## @BUTTON_PRESS_INTR_MASK
	.comm	_MRL_CHANGE_INTR_MASK,4,2       ## @MRL_CHANGE_INTR_MASK
	.comm	_CON_PFAULT_INTR_MASK,4,2       ## @CON_PFAULT_INTR_MASK
	.comm	_MRL_CHANGE_SERR_MASK,4,2       ## @MRL_CHANGE_SERR_MASK
	.comm	_CON_PFAULT_SERR_MASK,4,2       ## @CON_PFAULT_SERR_MASK
	.comm	_SLOT_REG_RSVDZ_MASK,4,2        ## @SLOT_REG_RSVDZ_MASK
	.comm	_SERR_INTR_ENABLE,4,2           ## @SERR_INTR_ENABLE
	.comm	_GLOBAL_INTR_MASK,4,2           ## @GLOBAL_INTR_MASK
	.comm	_GLOBAL_SERR_MASK,4,2           ## @GLOBAL_SERR_MASK
	.comm	_COMMAND_INTR_MASK,4,2          ## @COMMAND_INTR_MASK
	.comm	_ARBITER_SERR_MASK,4,2          ## @ARBITER_SERR_MASK
	.comm	_SERR_INTR_RSVDZ_MASK,4,2       ## @SERR_INTR_RSVDZ_MASK
	.comm	_shpchp_poll_mode,8,3           ## @shpchp_poll_mode
	.no_dead_strip	_hpc_release_ctlr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpc_release_ctlr
_hpc_release_ctlr:                      ; @hpc_release_ctlr
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x23, _ISO_PFAULT_INTR_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ISO_PFAULT_INTR_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x24, _BUTTON_PRESS_INTR_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BUTTON_PRESS_INTR_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _MRL_CHANGE_INTR_MASK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MRL_CHANGE_INTR_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x26, _CON_PFAULT_INTR_MASK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CON_PFAULT_INTR_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x27, _MRL_CHANGE_SERR_MASK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MRL_CHANGE_SERR_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x28, _CON_PFAULT_SERR_MASK@GOTPAGE
Lloh11:
	ldr	x28, [x28, _CON_PFAULT_SERR_MASK@GOTPAGEOFF]
Lloh12:
	adrp	x22, _SLOT_REG_RSVDZ_MASK@GOTPAGE
Lloh13:
	ldr	x22, [x22, _SLOT_REG_RSVDZ_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_SLOT_REG
	mov	x1, x0
	mov	x0, x19
	bl	_shpc_readl
Lloh14:
	adrp	x8, _PRSNT_CHANGE_INTR_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PRSNT_CHANGE_INTR_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x23]
	ldr	w10, [x24]
	ldr	w11, [x25]
	ldr	w12, [x26]
	ldr	w13, [x27]
	ldr	w14, [x28]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w8, w8, w14
	ldr	w9, [x22]
	bic	w21, w8, w9
	mov	x0, x20
	bl	_SLOT_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_shpc_writel
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_cleanup_slots
Lloh17:
	adrp	x20, _SERR_INTR_ENABLE@GOTPAGE
Lloh18:
	ldr	x20, [x20, _SERR_INTR_ENABLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_shpc_readl
Lloh19:
	adrp	x8, _GLOBAL_INTR_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GLOBAL_INTR_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _GLOBAL_SERR_MASK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GLOBAL_SERR_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _COMMAND_INTR_MASK@GOTPAGE
Lloh26:
	ldr	x10, [x10, _COMMAND_INTR_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
Lloh28:
	adrp	x11, _ARBITER_SERR_MASK@GOTPAGE
Lloh29:
	ldr	x11, [x11, _ARBITER_SERR_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
Lloh31:
	adrp	x9, _SERR_INTR_RSVDZ_MASK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SERR_INTR_RSVDZ_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	bic	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_shpc_writel
Lloh34:
	adrp	x8, _shpchp_poll_mode@GOTPAGE
Lloh35:
	ldr	x8, [x8, _shpchp_poll_mode@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	add	x0, x19, #24
	bl	_del_timer
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	ldr	x0, [x19, #16]
	bl	_pci_disable_msi
LBB0_6:
	ldr	w0, [x19, #12]
	bl	_iounmap
	ldp	w1, w0, [x19, #4]
	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	_release_mem_region
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PRSNT_CHANGE_INTR_MASK,4,2     ; @PRSNT_CHANGE_INTR_MASK
	.comm	_ISO_PFAULT_INTR_MASK,4,2       ; @ISO_PFAULT_INTR_MASK
	.comm	_BUTTON_PRESS_INTR_MASK,4,2     ; @BUTTON_PRESS_INTR_MASK
	.comm	_MRL_CHANGE_INTR_MASK,4,2       ; @MRL_CHANGE_INTR_MASK
	.comm	_CON_PFAULT_INTR_MASK,4,2       ; @CON_PFAULT_INTR_MASK
	.comm	_MRL_CHANGE_SERR_MASK,4,2       ; @MRL_CHANGE_SERR_MASK
	.comm	_CON_PFAULT_SERR_MASK,4,2       ; @CON_PFAULT_SERR_MASK
	.comm	_SLOT_REG_RSVDZ_MASK,4,2        ; @SLOT_REG_RSVDZ_MASK
	.comm	_SERR_INTR_ENABLE,4,2           ; @SERR_INTR_ENABLE
	.comm	_GLOBAL_INTR_MASK,4,2           ; @GLOBAL_INTR_MASK
	.comm	_GLOBAL_SERR_MASK,4,2           ; @GLOBAL_SERR_MASK
	.comm	_COMMAND_INTR_MASK,4,2          ; @COMMAND_INTR_MASK
	.comm	_ARBITER_SERR_MASK,4,2          ; @ARBITER_SERR_MASK
	.comm	_SERR_INTR_RSVDZ_MASK,4,2       ; @SERR_INTR_RSVDZ_MASK
	.comm	_shpchp_poll_mode,8,3           ; @shpchp_poll_mode
	.no_dead_strip	_hpc_release_ctlr
.subsections_via_symbols
