	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_set_wol
_bnxt_set_wol:                          ## @bnxt_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -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_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	testl	%eax, %ecx
	je	LBB0_9
## %bb.4:
	movq	_BNXT_FLAG_WOL_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.5:
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r14)
	jne	LBB0_12
## %bb.6:
	movq	%r14, %rdi
	callq	_bnxt_hwrm_alloc_wol_fltr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movl	$1, 4(%r14)
	jmp	LBB0_12
LBB0_9:
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r14)
	je	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	callq	_bnxt_hwrm_free_wol_fltr
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movl	$0, 4(%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNXT_FLAG_WOL_CAP,4,2          ## @BNXT_FLAG_WOL_CAP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_bnxt_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_set_wol
_bnxt_set_wol:                          ; @bnxt_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_4
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _BNXT_FLAG_WOL_CAP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNXT_FLAG_WOL_CAP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.6:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_bnxt_hwrm_alloc_wol_fltr
	cbnz	x0, LBB0_11
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_3
LBB0_9:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_bnxt_hwrm_free_wol_fltr
	cbz	x0, LBB0_13
LBB0_11:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
	mov	w0, #0
	b	LBB0_3
LBB0_13:
	str	wzr, [x19, #4]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNXT_FLAG_WOL_CAP,4,2          ; @BNXT_FLAG_WOL_CAP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_bnxt_set_wol
.subsections_via_symbols
