	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_iso_shutdown              ## -- Begin function hpsb_iso_shutdown
	.p2align	4, 0x90
_hpsb_iso_shutdown:                     ## @hpsb_iso_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_HPSB_ISO_DRIVER_INIT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_hpsb_iso_stop
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	_HPSB_ISO_XMIT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.3:
	movq	_XMIT_SHUTDOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_RECV_SHUTDOWN@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_5:
	leaq	16(%rbx), %rdi
	callq	_dma_region_free
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HPSB_ISO_DRIVER_INIT,4,2       ## @HPSB_ISO_DRIVER_INIT
	.comm	_HPSB_ISO_XMIT,8,3              ## @HPSB_ISO_XMIT
	.comm	_XMIT_SHUTDOWN,4,2              ## @XMIT_SHUTDOWN
	.comm	_RECV_SHUTDOWN,4,2              ## @RECV_SHUTDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_iso_shutdown              ; -- Begin function hpsb_iso_shutdown
	.p2align	2
_hpsb_iso_shutdown:                     ; @hpsb_iso_shutdown
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _HPSB_ISO_DRIVER_INIT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HPSB_ISO_DRIVER_INIT@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_hpsb_iso_stop
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
Lloh2:
	adrp	x10, _HPSB_ISO_XMIT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HPSB_ISO_XMIT@GOTPAGEOFF]
Lloh4:
	adrp	x11, _XMIT_SHUTDOWN@GOTPAGE
Lloh5:
	ldr	x11, [x11, _XMIT_SHUTDOWN@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
Lloh7:
	adrp	x12, _RECV_SHUTDOWN@GOTPAGE
Lloh8:
	ldr	x12, [x12, _RECV_SHUTDOWN@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	add	x0, x19, #16
	bl	_dma_region_free
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HPSB_ISO_DRIVER_INIT,4,2       ; @HPSB_ISO_DRIVER_INIT
	.comm	_HPSB_ISO_XMIT,8,3              ; @HPSB_ISO_XMIT
	.comm	_XMIT_SHUTDOWN,4,2              ; @XMIT_SHUTDOWN
	.comm	_RECV_SHUTDOWN,4,2              ; @RECV_SHUTDOWN
.subsections_via_symbols
