	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_legacy_ioremapfree         ## -- Begin function drm_legacy_ioremapfree
	.p2align	4, 0x90
_drm_legacy_ioremapfree:                ## @drm_legacy_ioremapfree
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movl	8(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	cmpl	$0, 12(%rax)
	je	LBB0_6
## %bb.2:
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	(%rax), %rax
	movq	__DRM_AGP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.7:
	popq	%rbp
	jmp	_vunmap                         ## TAILCALL
LBB0_6:
	popq	%rbp
	retq
LBB0_5:
	popq	%rbp
	jmp	_iounmap                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__DRM_AGP,8,3                   ## @_DRM_AGP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_legacy_ioremapfree         ; -- Begin function drm_legacy_ioremapfree
	.p2align	2
_drm_legacy_ioremapfree:                ; @drm_legacy_ioremapfree
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w0, [x0, #8]
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_6
; %bb.2:
	ldr	x9, [x1]
	cbz	x9, LBB0_7
; %bb.3:
	ldr	x9, [x9]
	cbz	x9, LBB0_7
; %bb.4:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, __DRM_AGP@GOTPAGE
Lloh1:
	ldr	x9, [x9, __DRM_AGP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	b	_vunmap
LBB0_6:
	ret
LBB0_7:
	b	_iounmap
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__DRM_AGP,8,3                   ; @_DRM_AGP
.subsections_via_symbols
