	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sf2_sw_set_wol
_bcm_sf2_sw_set_wol:                    ## @bcm_sf2_sw_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movslq	%esi, %r14
	movq	(%rax,%r14,8), %rax
	movq	8(%rax), %r13
	callq	_bcm_sf2_to_priv
	movq	(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	(%rcx), %r14d
	movq	$0, -48(%rbp)
	movq	(%r13), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, %rbx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	*%rcx
	movl	-44(%rbp), %eax
	notl	%eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	movl	(%r15), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_5:
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	testl	%edx, %edx
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_9:
	notl	%eax
	movq	%rbx, %rdi
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	je	LBB0_10
LBB0_7:
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	cmpl	%edx, %eax
	je	LBB0_11
## %bb.8:
	orl	%eax, %edx
	jmp	LBB0_12
LBB0_10:
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	xorl	%eax, %eax
LBB0_11:
	notl	%edx
	andl	%eax, %edx
LBB0_12:
	movl	%edx, (%rdi)
	movq	(%r13), %rax
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bcm_sf2_sw_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sf2_sw_set_wol
_bcm_sf2_sw_set_wol:                    ; @bcm_sf2_sw_set_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x8, [x0]
	sbfiz	x24, x22, #3, #32
	ldr	x8, [x8, x24]
	ldr	x20, [x8, #8]
	bl	_bcm_sf2_to_priv
	mov	x21, x0
	ldr	x8, [x23]
	ldr	x8, [x8, x24]
	ldr	w23, [x8]
	str	xzr, [sp, #8]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	ldr	w8, [sp, #12]
	mvn	w8, w8
	b	LBB0_3
LBB0_2:
	mov	w8, #-1
LBB0_3:
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_5:
	mov	w8, #1
	lsl	w8, w8, w22
	cbz	w9, LBB0_7
; %bb.6:
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_8
LBB0_7:
	ldr	w9, [x21]
	bics	w8, w9, w8
	str	w8, [x21]
	b.eq	LBB0_10
LBB0_8:
	mov	w9, #1
	lsl	w9, w9, w23
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.9:
	orr	w8, w8, w9
	b	LBB0_12
LBB0_10:
	mov	w9, #1
	lsl	w9, w9, w23
LBB0_11:
	bic	w8, w8, w9
LBB0_12:
	str	w8, [x21]
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_13:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bcm_sf2_sw_set_wol
.subsections_via_symbols
