	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_get_wol
_mlx4_en_get_wol:                       ## @mlx4_en_get_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$0, -20(%rbp)
	movl	(%rax), %edx
	leal	-3(%rdx), %eax
	cmpl	$-3, %eax
	ja	LBB0_1
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_en_err                         ## TAILCALL
LBB0_1:
	cmpl	$1, %edx
	jne	LBB0_2
## %bb.3:
	movq	_MLX4_DEV_CAP_FLAG_WOL_PORT1@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_MLX4_DEV_CAP_FLAG_WOL_PORT2@GOTPCREL(%rip), %rax
LBB0_4:
	movq	8(%rbx), %rcx
	movq	(%rcx), %rdi
	movl	(%rdi), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.6:
	leaq	-20(%rbp), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mlx4_wol_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_en_err
	jmp	LBB0_14
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_14
LBB0_8:
	movl	-20(%rbp), %eax
	movq	_MLX4_EN_WOL_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rcx
	andl	%eax, %edx
	je	LBB0_9
## %bb.10:
	movq	(%rcx), %rdx
	jmp	LBB0_11
LBB0_9:
	xorl	%edx, %edx
LBB0_11:
	movq	%rdx, 8(%r14)
	movq	_MLX4_EN_WOL_ENABLED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_13
## %bb.12:
	movq	(%rcx), %rax
	movq	%rax, (%r14)
	jmp	LBB0_14
LBB0_13:
	movq	$0, (%r14)
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get WoL information\n"

	.comm	_MLX4_DEV_CAP_FLAG_WOL_PORT1,4,2 ## @MLX4_DEV_CAP_FLAG_WOL_PORT1
	.comm	_MLX4_DEV_CAP_FLAG_WOL_PORT2,4,2 ## @MLX4_DEV_CAP_FLAG_WOL_PORT2
	.comm	_MLX4_EN_WOL_MAGIC,4,2          ## @MLX4_EN_WOL_MAGIC
	.comm	_WAKE_MAGIC,8,3                 ## @WAKE_MAGIC
	.comm	_MLX4_EN_WOL_ENABLED,4,2        ## @MLX4_EN_WOL_ENABLED
	.no_dead_strip	_mlx4_en_get_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_get_wol
_mlx4_en_get_wol:                       ; @mlx4_en_get_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	str	wzr, [sp, #12]
	ldr	w2, [x0]
	sub	w8, w2, #3
	cmn	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_en_err
LBB0_2:
Lloh2:
	adrp	x8, _MLX4_DEV_CAP_FLAG_WOL_PORT1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX4_DEV_CAP_FLAG_WOL_PORT1@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MLX4_DEV_CAP_FLAG_WOL_PORT2@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG_WOL_PORT2@GOTPAGEOFF]
	cmp	w2, #1
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	ldr	x0, [x9]
	ldr	w9, [x0]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	add	x1, sp, #12
	bl	_mlx4_wol_read
	cbz	w0, LBB0_7
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_en_err
	b	LBB0_9
LBB0_5:
	str	xzr, [x19, #8]
LBB0_6:
	str	xzr, [x19]
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _MLX4_EN_WOL_MAGIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX4_EN_WOL_MAGIC@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh10:
	ldr	w10, [x8]
Lloh11:
	adrp	x8, _WAKE_MAGIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	x11, [x8]
	tst	w10, w9
	csel	x10, xzr, x11, eq
	str	x10, [x19, #8]
Lloh13:
	adrp	x10, _MLX4_EN_WOL_ENABLED@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MLX4_EN_WOL_ENABLED@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.8:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get WoL information\n"

	.comm	_MLX4_DEV_CAP_FLAG_WOL_PORT1,4,2 ; @MLX4_DEV_CAP_FLAG_WOL_PORT1
	.comm	_MLX4_DEV_CAP_FLAG_WOL_PORT2,4,2 ; @MLX4_DEV_CAP_FLAG_WOL_PORT2
	.comm	_MLX4_EN_WOL_MAGIC,4,2          ; @MLX4_EN_WOL_MAGIC
	.comm	_WAKE_MAGIC,8,3                 ; @WAKE_MAGIC
	.comm	_MLX4_EN_WOL_ENABLED,4,2        ; @MLX4_EN_WOL_ENABLED
	.no_dead_strip	_mlx4_en_get_wol
.subsections_via_symbols
