	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbni_open
_sbni_open:                             ## @sbni_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r13), %eax
	cmpl	$1023, %eax                     ## imm = 0x3FF
	jg	LBB0_10
## %bb.1:
	movq	_sbni_cards@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.2:
	movq	_SBNI_MAX_NUM_CARDS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.3:
	leaq	(%rbx,%rcx,8), %rcx
	movq	8(%r13), %rdx
	leal	4(%rax), %r9d
	addl	$-4, %eax
	movq	_IFF_UP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, 8(%rdi)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rdi), %esi
	cmpl	%r9d, %esi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %esi
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r8d, 16(%rdi)
	jne	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	8(%rbx), %rsi
	cmpq	%rcx, %rbx
	movq	%rsi, %rbx
	jb	LBB0_4
LBB0_10:
	movq	8(%r13), %rdi
	movq	_sbni_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	24(%r13), %ecx
	movq	%r13, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	8(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_12:
	callq	_netdev_priv
	movq	%r13, 24(%rax)
	movq	-8(%rbx), %rax
	movl	24(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_notice
	movq	_FL_SECONDARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r14)
LBB0_13:
	leaq	32(%r14), %r12
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	20(%r13), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	addq	$16, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r13, %rdi
	callq	_card_start
	movq	%r13, %rdi
	callq	_netif_start_queue
	movq	%r13, 8(%r14)
	movq	_sbni_watchdog@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_SBNI_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 32(%r14)
	movq	%r12, %rdi
	callq	_add_timer
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sbni_cards,8,3                 ## @sbni_cards
	.comm	_SBNI_MAX_NUM_CARDS,4,2         ## @SBNI_MAX_NUM_CARDS
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using shared irq with %s\n"

	.comm	_FL_SECONDARY,4,2               ## @FL_SECONDARY
	.comm	_sbni_interrupt,4,2             ## @sbni_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"unable to get IRQ %d\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_sbni_watchdog,4,2              ## @sbni_watchdog
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SBNI_TIMEOUT,8,3               ## @SBNI_TIMEOUT
	.no_dead_strip	_sbni_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbni_open
_sbni_open:                             ; @sbni_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
	ldr	w11, [x20]
	cmp	w11, #1023
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _sbni_cards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sbni_cards@GOTPAGEOFF]
Lloh2:
	ldr	x13, [x8]
Lloh3:
	adrp	x8, _SBNI_MAX_NUM_CARDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SBNI_MAX_NUM_CARDS@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	ldr	x0, [x13]
	cmp	x0, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _sbni_interrupt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sbni_interrupt@GOTPAGEOFF]
	ldr	x0, [x20, #8]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x20, #24]
	mov	x4, x20
	bl	_request_irq
	cbz	x0, LBB0_10
; %bb.3:
	ldr	x2, [x20, #8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh14:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_4:
	add	x8, x13, x8, lsl #3
	ldr	x9, [x20, #8]
	add	w10, w11, #4
	sub	w11, w11, #4
Lloh17:
	adrp	x12, _IFF_UP@GOTPAGE
Lloh18:
	ldr	x12, [x12, _IFF_UP@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	add	x21, x13, #8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x13, x21
	ldr	x0, [x13], #8
	cmp	x0, #0
	ccmp	x21, x8, #2, ne
	mov	x21, x13
	b.hs	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x0, #8]
	cmp	x13, x9
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w13, [x0]
	cmp	w13, w10
	ccmp	w13, w11, #4, ne
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w13, [x0, #16]
	tst	w12, w13
	b.eq	LBB0_5
; %bb.9:
	bl	_netdev_priv
	str	x20, [x0, #24]
	ldur	x8, [x21, #-8]
	ldr	w2, [x8, #24]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_notice
Lloh22:
	adrp	x8, _FL_SECONDARY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FL_SECONDARY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_10:
	add	x21, x19, #32
	mov	x0, x19
	bl	_spin_lock
	add	x0, x20, #20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x19, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	_card_start
	mov	x0, x20
	bl	_netif_start_queue
	str	x20, [x19, #8]
Lloh25:
	adrp	x8, _sbni_watchdog@GOTPAGE
Lloh26:
	ldr	x8, [x8, _sbni_watchdog@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_timer_setup
Lloh28:
	adrp	x8, _jiffies@GOTPAGE
Lloh29:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
Lloh31:
	adrp	x9, _SBNI_TIMEOUT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SBNI_TIMEOUT@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #32]
	mov	x0, x21
	bl	_add_timer
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
LBB0_11:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_sbni_cards,8,3                 ; @sbni_cards
	.comm	_SBNI_MAX_NUM_CARDS,4,2         ; @SBNI_MAX_NUM_CARDS
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using shared irq with %s\n"

	.comm	_FL_SECONDARY,4,2               ; @FL_SECONDARY
	.comm	_sbni_interrupt,4,2             ; @sbni_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"unable to get IRQ %d\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_sbni_watchdog,4,2              ; @sbni_watchdog
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SBNI_TIMEOUT,8,3               ; @SBNI_TIMEOUT
	.no_dead_strip	_sbni_open
.subsections_via_symbols
