	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	movl	$0, -28(%rbp)
	movl	(%rbx), %edx
	leal	-3(%rdx), %eax
	cmpl	$-3, %eax
	ja	LBB0_1
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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:
	movl	(%rdi), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.6:
	movq	8(%rdi), %rax
	movq	(%rax,%rdx,8), %rax
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rax
LBB0_8:
	movq	%rax, 8(%r14)
	leaq	-28(%rbp), %rsi
	callq	_mlx4_wol_read
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	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_10:
	movl	-28(%rbp), %eax
	movq	_MLX4_EN_WOL_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.11:
	movq	_MLX4_EN_WOL_MAGIC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	(%r15), %rax
	movq	%rax, (%r14)
	jmp	LBB0_14
LBB0_13:
	movq	$0, (%r14)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_WAKE_MAGIC,8,3                 ## @WAKE_MAGIC
	.comm	_MLX4_EN_WOL_ENABLED,4,2        ## @MLX4_EN_WOL_ENABLED
	.comm	_MLX4_EN_WOL_MAGIC,4,2          ## @MLX4_EN_WOL_MAGIC
	.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	str	wzr, [sp, #12]
	ldr	w2, [x20]
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	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	w9, [x0]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x0, #8]
	ldr	x8, [x8, x2, lsl #3]
Lloh6:
	adrp	x21, _WAKE_MAGIC@GOTPAGE
Lloh7:
	ldr	x21, [x21, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, #0
	csel	x8, xzr, x9, eq
	str	x8, [x19, #8]
	add	x1, sp, #12
	bl	_mlx4_wol_read
	cbz	w0, LBB0_8
; %bb.4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_en_err
	b	LBB0_7
LBB0_5:
	str	xzr, [x19, #8]
LBB0_6:
	str	xzr, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _MLX4_EN_WOL_ENABLED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MLX4_EN_WOL_ENABLED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.9:
Lloh13:
	adrp	x9, _MLX4_EN_WOL_MAGIC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MLX4_EN_WOL_MAGIC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.10:
	ldr	x8, [x21]
	str	x8, [x19]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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	_WAKE_MAGIC,8,3                 ; @WAKE_MAGIC
	.comm	_MLX4_EN_WOL_ENABLED,4,2        ; @MLX4_EN_WOL_ENABLED
	.comm	_MLX4_EN_WOL_MAGIC,4,2          ; @MLX4_EN_WOL_MAGIC
	.no_dead_strip	_mlx4_en_get_wol
.subsections_via_symbols
