	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_wol
_bnx2x_set_wol:                         ## @bnx2x_set_wol
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	testl	%edx, %eax
	je	LBB0_2
LBB0_1:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	movl	$0, %edx
	testl	%eax, %ecx
	je	LBB0_5
## %bb.3:
	movq	_NO_WOL_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_1
## %bb.4:
	movl	$1, %edx
LBB0_5:
	movl	%edx, 4(%r14)
	movq	_curr_cfg@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_SHMEM2_HAS
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r15), %esi
	movq	_CURR_CFG_MET_OS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_SHMEM2_WR
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WOL not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NO_WOL_FLAG,4,2                ## @NO_WOL_FLAG
	.comm	_curr_cfg,4,2                   ## @curr_cfg
	.comm	_CURR_CFG_MET_OS,4,2            ## @CURR_CFG_MET_OS
	.no_dead_strip	_bnx2x_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_wol
_bnx2x_set_wol:                         ; @bnx2x_set_wol
	.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	x20, x1
	bl	_netdev_priv
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WAKE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _NO_WOL_FLAG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NO_WOL_FLAG@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.5:
	mov	w8, #1
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	str	w8, [x19, #4]
Lloh14:
	adrp	x20, _curr_cfg@GOTPAGE
Lloh15:
	ldr	x20, [x20, _curr_cfg@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_SHMEM2_HAS
	cbz	x0, LBB0_2
; %bb.8:
	ldr	w1, [x20]
Lloh16:
	adrp	x8, _CURR_CFG_MET_OS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CURR_CFG_MET_OS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_SHMEM2_WR
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WOL not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NO_WOL_FLAG,4,2                ; @NO_WOL_FLAG
	.comm	_curr_cfg,4,2                   ; @curr_cfg
	.comm	_CURR_CFG_MET_OS,4,2            ; @CURR_CFG_MET_OS
	.no_dead_strip	_bnx2x_set_wol
.subsections_via_symbols
