	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rocker_port_open
_rocker_port_open:                      ## @rocker_port_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_rocker_port_dma_rings_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	%r15, %rdi
	callq	_rocker_msix_tx_vector
	movq	_rocker_tx_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_rocker_driver_name@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%eax, %edi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	callq	_rocker_msix_rx_vector
	movq	_rocker_rx_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %ecx
	movl	%eax, %edi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_rocker_world_port_open
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movl	8(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_err
	movq	%r15, %rdi
	callq	_rocker_msix_rx_vector
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_free_irq
LBB0_6:
	movq	%r15, %rdi
	callq	_rocker_msix_tx_vector
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_free_irq
LBB0_3:
	movq	%r15, %rdi
	callq	_rocker_port_dma_rings_fini
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_napi_enable
	movq	%r15, %rdi
	callq	_napi_enable
	cmpl	$0, (%r14)
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rocker_port_set_enable
LBB0_11:
	movq	%r14, %rdi
	callq	_netif_start_queue
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_rocker_tx_irq_handler,4,2      ## @rocker_tx_irq_handler
	.comm	_rocker_driver_name,4,2         ## @rocker_driver_name
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot assign tx irq\n"

	.comm	_rocker_rx_irq_handler,4,2      ## @rocker_rx_irq_handler
L_.str.1:                               ## @.str.1
	.asciz	"cannot assign rx irq\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot open port in world\n"

	.no_dead_strip	_rocker_port_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rocker_port_open
_rocker_port_open:                      ; @rocker_port_open
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_rocker_port_dma_rings_init
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_rocker_msix_tx_vector
Lloh0:
	adrp	x8, _rocker_tx_irq_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rocker_tx_irq_handler@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x22, _rocker_driver_name@GOTPAGE
Lloh4:
	ldr	x22, [x22, _rocker_driver_name@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_rocker_msix_rx_vector
Lloh7:
	adrp	x8, _rocker_rx_irq_handler@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rocker_rx_irq_handler@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w3, [x22]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_rocker_world_port_open
	cbz	w0, LBB0_10
; %bb.6:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_err
	mov	x0, x19
	bl	_rocker_msix_rx_vector
	mov	x1, x19
	bl	_free_irq
LBB0_7:
	mov	x0, x19
	bl	_rocker_msix_tx_vector
	mov	x1, x19
	bl	_free_irq
LBB0_8:
	mov	x0, x19
	bl	_rocker_port_dma_rings_fini
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	add	x0, x19, #4
	bl	_napi_enable
	mov	x0, x19
	bl	_napi_enable
	ldr	w8, [x20]
	cbnz	w8, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #1
	bl	_rocker_port_set_enable
LBB0_12:
	mov	x0, x20
	bl	_netif_start_queue
	mov	w21, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_rocker_tx_irq_handler,4,2      ; @rocker_tx_irq_handler
	.comm	_rocker_driver_name,4,2         ; @rocker_driver_name
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot assign tx irq\n"

	.comm	_rocker_rx_irq_handler,4,2      ; @rocker_rx_irq_handler
l_.str.1:                               ; @.str.1
	.asciz	"cannot assign rx irq\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot open port in world\n"

	.no_dead_strip	_rocker_port_open
.subsections_via_symbols
