	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_open
_s2io_open:                             ## @s2io_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	40(%rax), %r12
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	$0, 32(%r15)
	movq	%r15, %rdi
	callq	_s2io_card_up
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DBG_PRINT
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_do_s2io_prog_unicast
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.3:
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DBG_PRINT
	movq	%r15, %rdi
	callq	_s2io_card_down
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_4:
	movq	24(%r15), %rax
	movq	_MSI_X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_kfree
	movl	(%r15), %eax
	shll	$2, %eax
	addl	%eax, (%r12)
LBB0_7:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_kfree
	movl	(%r15), %eax
	shll	$2, %eax
	addl	%eax, (%r12)
	jmp	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	callq	_s2io_start_all_tx_queue
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_DBG,4,2                    ## @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: H/W initialization failed\n"

	.comm	_FAILURE,8,3                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"Set Mac Address Failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MSI_X,8,3                      ## @MSI_X
	.no_dead_strip	_s2io_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_open
_s2io_open:                             ; @s2io_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x22, [x0, #40]
	mov	x0, x21
	bl	_netif_carrier_off
	str	xzr, [x19, #32]
	mov	x0, x19
	bl	_s2io_card_up
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _ERR_DBG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_DBG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DBG_PRINT
	b	LBB0_4
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x21
	bl	_do_s2io_prog_unicast
Lloh5:
	adrp	x8, _FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
Lloh8:
	adrp	x8, _ERR_DBG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_DBG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DBG_PRINT
	mov	x0, x19
	bl	_s2io_card_down
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	ldr	x8, [x19, #24]
Lloh16:
	adrp	x9, _MSI_X@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MSI_X@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_kfree
	ldr	w8, [x19]
	ldr	w9, [x22]
	add	w8, w9, w8, lsl #2
	str	w8, [x22]
LBB0_7:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.8:
	bl	_kfree
	ldr	w8, [x19]
	ldr	w9, [x22]
	add	w8, w9, w8, lsl #2
	str	w8, [x22]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_s2io_start_all_tx_queue
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_DBG,4,2                    ; @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: H/W initialization failed\n"

	.comm	_FAILURE,8,3                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"Set Mac Address Failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MSI_X,8,3                      ; @MSI_X
	.no_dead_strip	_s2io_open
.subsections_via_symbols
