	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ast_driver_unload              ## -- Begin function ast_driver_unload
	.p2align	4, 0x90
_ast_driver_unload:                     ## @ast_driver_unload
	.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, %r14
	movq	8(%rdi), %rbx
	movq	_AST_IO_CRTC_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$161, %edx
	movl	$4, %ecx
	callq	_ast_set_index_reg
	movq	%r14, %rdi
	callq	_ast_release_firmware
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_ast_mode_fini
	movq	%r14, %rdi
	callq	_drm_mode_config_cleanup
	movq	%rbx, %rdi
	callq	_ast_mm_fini
	movq	(%rbx), %rax
	movq	8(%rbx), %rsi
	movq	_AST_IO_MM_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_pci_iounmap
	movq	8(%rbx), %rsi
LBB0_2:
	movl	(%r14), %edi
	callq	_pci_iounmap
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AST_IO_CRTC_PORT,4,2           ## @AST_IO_CRTC_PORT
	.comm	_AST_IO_MM_OFFSET,8,3           ## @AST_IO_MM_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ast_driver_unload              ; -- Begin function ast_driver_unload
	.p2align	2
_ast_driver_unload:                     ; @ast_driver_unload
	.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	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _AST_IO_CRTC_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AST_IO_CRTC_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #161
	mov	w3, #4
	bl	_ast_set_index_reg
	mov	x0, x20
	bl	_ast_release_firmware
	ldr	x0, [x19, #16]
	bl	_kfree
	mov	x0, x20
	bl	_ast_mode_fini
	mov	x0, x20
	bl	_drm_mode_config_cleanup
	mov	x0, x19
	bl	_ast_mm_fini
	ldp	x8, x1, [x19]
Lloh3:
	adrp	x9, _AST_IO_MM_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AST_IO_MM_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, x1
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	mov	x1, x8
	bl	_pci_iounmap
	ldr	x1, [x19, #8]
LBB0_2:
	ldr	w0, [x20]
	bl	_pci_iounmap
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AST_IO_CRTC_PORT,4,2           ; @AST_IO_CRTC_PORT
	.comm	_AST_IO_MM_OFFSET,8,3           ; @AST_IO_MM_OFFSET
.subsections_via_symbols
