	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_get_wol_fltrs
_bnxt_hwrm_get_wol_fltrs:               ## @bnxt_hwrm_get_wol_fltrs
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	24(%rdi), %r12
	movq	_HWRM_WOL_FILTER_QCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %r15
	movq	%r15, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movq	16(%rbx), %rdi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movq	%r14, %rdi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	__hwrm_send_message
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r15
	movq	(%r12), %rax
	movq	_WOL_FILTER_ALLOC_REQ_WOL_TYPE_MAGICPKT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	movl	$1, (%rbx)
	movl	8(%r12), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_WOL_FILTER_QCFG,4,2       ## @HWRM_WOL_FILTER_QCFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_WOL_FILTER_ALLOC_REQ_WOL_TYPE_MAGICPKT,8,3 ## @WOL_FILTER_ALLOC_REQ_WOL_TYPE_MAGICPKT
	.no_dead_strip	_bnxt_hwrm_get_wol_fltrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_get_wol_fltrs
_bnxt_hwrm_get_wol_fltrs:               ; @bnxt_hwrm_get_wol_fltrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	x22, [x0, #24]
Lloh0:
	adrp	x8, _HWRM_WOL_FILTER_QCFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_WOL_FILTER_QCFG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	ldr	x0, [x19, #16]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [sp, #8]
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
Lloh3:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #24
	bl	__hwrm_send_message
	mov	x21, #0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_2:
	ldr	w0, [x22, #12]
	bl	_le16_to_cpu
	mov	x21, x0
	cbz	x0, LBB0_1
; %bb.3:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _WOL_FILTER_ALLOC_REQ_WOL_TYPE_MAGICPKT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WOL_FILTER_ALLOC_REQ_WOL_TYPE_MAGICPKT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x22, #8]
	str	w8, [x19, #8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_WOL_FILTER_QCFG,4,2       ; @HWRM_WOL_FILTER_QCFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_WOL_FILTER_ALLOC_REQ_WOL_TYPE_MAGICPKT,8,3 ; @WOL_FILTER_ALLOC_REQ_WOL_TYPE_MAGICPKT
	.no_dead_strip	_bnxt_hwrm_get_wol_fltrs
.subsections_via_symbols
