	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_set_dump
_netxen_set_dump:                       ## @netxen_set_dump
	.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	%rsi, %r13
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r13), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_nx_dev_request_reset
	movq	_NETXEN_FW_RESET_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_20
LBB0_2:
	movq	_FW_DUMP_LEVELS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_19
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	(%r15), %rdi
	cmpl	(%rdi,%rbx,4), %edx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_19:
	movl	(%r13), %edx
	leaq	L_.str.7(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_20
LBB0_4:
	cmpl	$0, 8(%r14)
	je	LBB0_5
## %bb.7:
	cmpl	$0, 4(%r14)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_13:
	xorl	%r15d, %r15d
	cmpl	$0, 8(%r14)
	jne	LBB0_20
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	$1, 8(%r14)
	jmp	LBB0_20
LBB0_10:
	cmpl	$0, 8(%r14)
	je	LBB0_11
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	$0, 8(%r14)
	jmp	LBB0_20
LBB0_5:
	leaq	L_.str(%rip), %rsi
LBB0_6:
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_20
LBB0_11:
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_18:
	movl	%edx, 12(%r14)
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_20
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_nx_dev_request_reset
LBB0_20:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_4
	.long	L0_0_set_13
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW dump not enabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"Previous dump not cleared, not forcing dump\n"

L_.str.2:                               ## @.str.2
	.asciz	"Forcing a fw dump\n"

L_.str.3:                               ## @.str.3
	.asciz	"Disabling FW Dump\n"

L_.str.4:                               ## @.str.4
	.asciz	"Enabling FW dump\n"

L_.str.5:                               ## @.str.5
	.asciz	"Forcing FW reset\n"

	.comm	_NETXEN_FW_RESET_OWNER,4,2      ## @NETXEN_FW_RESET_OWNER
	.comm	_FW_DUMP_LEVELS,8,3             ## @FW_DUMP_LEVELS
L_.str.6:                               ## @.str.6
	.asciz	"Driver mask changed to: 0x%x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid dump level: 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_netxen_set_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_set_dump
_netxen_set_dump:                       ; @netxen_set_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x1, l_.str.5@PAGE
Lloh3:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	x0, x19
	bl	_nx_dev_request_reset
	mov	w0, #0
Lloh4:
	adrp	x8, _NETXEN_FW_RESET_OWNER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETXEN_FW_RESET_OWNER@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_19
LBB0_3:
Lloh7:
	adrp	x22, _FW_DUMP_LEVELS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _FW_DUMP_LEVELS@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	x0, [x22]
	ldr	w9, [x0, x23, lsl #2]
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_5
LBB0_7:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.7@PAGE
Lloh10:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_8:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
; %bb.9:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_20
; %bb.10:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_11:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_18
; %bb.12:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_19
LBB0_13:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_18
; %bb.14:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	w0, #0
	str	wzr, [x19, #8]
	b	LBB0_19
LBB0_15:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_16:
	str	w8, [x19, #12]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_17:
	mov	x0, x20
	bl	_netdev_info
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	x0, x19
	bl	_nx_dev_request_reset
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW dump not enabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"Previous dump not cleared, not forcing dump\n"

l_.str.2:                               ; @.str.2
	.asciz	"Forcing a fw dump\n"

l_.str.3:                               ; @.str.3
	.asciz	"Disabling FW Dump\n"

l_.str.4:                               ; @.str.4
	.asciz	"Enabling FW dump\n"

l_.str.5:                               ; @.str.5
	.asciz	"Forcing FW reset\n"

	.comm	_NETXEN_FW_RESET_OWNER,4,2      ; @NETXEN_FW_RESET_OWNER
	.comm	_FW_DUMP_LEVELS,8,3             ; @FW_DUMP_LEVELS
l_.str.6:                               ; @.str.6
	.asciz	"Driver mask changed to: 0x%x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid dump level: 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_netxen_set_dump
.subsections_via_symbols
