	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lance_free_hwresources
_lance_free_hwresources:                ## @lance_free_hwresources
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movq	8(%rax), %rdi
	movq	_LANCE_REG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_of_iounmap
LBB0_2:
	movq	40(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	48(%rbx), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_resource_size
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_of_iounmap
LBB0_4:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.7:
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	movl	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_of_iounmap                     ## TAILCALL
LBB0_5:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.8:
	movq	16(%rbx), %rdi
	movl	(%rbx), %ecx
	movl	$4, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LANCE_REG_SIZE,4,2             ## @LANCE_REG_SIZE
	.no_dead_strip	_lance_free_hwresources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lance_free_hwresources
_lance_free_hwresources:                ; @lance_free_hwresources
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x1, [x0, #56]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
Lloh0:
	adrp	x8, _LANCE_REG_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LANCE_REG_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_of_iounmap
LBB0_2:
	ldr	x20, [x19, #40]
	cbz	x20, LBB0_4
; %bb.3:
	ldr	x8, [x19, #48]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_resource_size
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_of_iounmap
LBB0_4:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	mov	w2, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_of_iounmap
LBB0_6:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_8
; %bb.7:
	ldr	x0, [x19, #16]
	ldr	w3, [x19]
	mov	w1, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dma_free_coherent
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LANCE_REG_SIZE,4,2             ; @LANCE_REG_SIZE
	.no_dead_strip	_lance_free_hwresources
.subsections_via_symbols
