	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function znet_request_resources
_znet_request_resources:                ## @znet_request_resources
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %edi
	movq	_znet_interrupt@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_request_dma
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_request_dma
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	leaq	L_.str.3(%rip), %rdx
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	4(%rbx), %edi
	movl	16(%r14), %esi
	leaq	L_.str.4(%rip), %rdx
	callq	_request_region
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.5:
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	callq	_release_region
LBB0_6:
	movl	4(%r14), %edi
	callq	_free_dma
LBB0_7:
	movl	(%r14), %edi
	callq	_free_dma
LBB0_8:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	$-1, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_znet_interrupt,4,2             ## @znet_interrupt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ZNet"

L_.str.1:                               ## @.str.1
	.asciz	"ZNet rx"

L_.str.2:                               ## @.str.2
	.asciz	"ZNet tx"

L_.str.3:                               ## @.str.3
	.asciz	"ZNet SIA"

L_.str.4:                               ## @.str.4
	.asciz	"ZNet I/O"

	.no_dead_strip	_znet_request_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function znet_request_resources
_znet_request_resources:                ; @znet_request_resources
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x1, _znet_interrupt@GOTPAGE
Lloh1:
	ldr	x1, [x1, _znet_interrupt@GOTPAGEOFF]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_request_dma
	cbnz	x0, LBB0_9
; %bb.2:
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_request_dma
	cbnz	x0, LBB0_8
; %bb.3:
	ldp	w1, w0, [x20, #8]
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_request_region
	cbz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #16]
Lloh10:
	adrp	x2, l_.str.4@PAGE
Lloh11:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_request_region
	cbz	w0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	ldp	w1, w0, [x20, #8]
	bl	_release_region
LBB0_7:
	ldr	w0, [x20, #4]
	bl	_free_dma
LBB0_8:
	ldr	w0, [x20]
	bl	_free_dma
LBB0_9:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_znet_interrupt,4,2             ; @znet_interrupt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ZNet"

l_.str.1:                               ; @.str.1
	.asciz	"ZNet rx"

l_.str.2:                               ; @.str.2
	.asciz	"ZNet tx"

l_.str.3:                               ; @.str.3
	.asciz	"ZNet SIA"

l_.str.4:                               ; @.str.4
	.asciz	"ZNet I/O"

	.no_dead_strip	_znet_request_resources
.subsections_via_symbols
