	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_mac_mar_set
_pch_gbe_mac_mar_set:                   ## @pch_gbe_mac_mar_set
	.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
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_pch_gbe_hw_to_adapter
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_netdev_dbg
	movl	8(%rbx), %eax
	movl	16(%rbx), %ecx
	shll	$8, %eax
	orl	(%rbx), %eax
	shll	$16, %ecx
	movl	24(%rbx), %r14d
	shll	$24, %r14d
	orl	%ecx, %r14d
	orl	%eax, %r14d
	movl	40(%rbx), %r12d
	shll	$8, %r12d
	orl	32(%rbx), %r12d
	movq	(%r15), %rdi
	callq	_ioread32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	btsl	%r13d, %edi
	movq	(%r15), %rsi
	callq	_iowrite32
	movq	(%r15), %rdi
	movq	_PCH_GBE_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pch_gbe_wait_clr_bit
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movslq	%r13d, %rbx
	leaq	(%rax,%rbx,8), %rsi
	addq	$4, %rsi
	shlq	$3, %rbx
	movl	%r14d, %edi
	callq	_iowrite32
	movq	(%r15), %rax
	addq	8(%rax), %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_iowrite32
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	btrl	%r13d, %edi
	movq	(%r15), %rsi
	callq	_iowrite32
	movq	(%r15), %rdi
	movq	_PCH_GBE_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pch_gbe_wait_clr_bit           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index : 0x%x\n"

	.comm	_PCH_GBE_BUSY,4,2               ## @PCH_GBE_BUSY
	.no_dead_strip	_pch_gbe_mac_mar_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_mac_mar_set
_pch_gbe_mac_mar_set:                   ; @pch_gbe_mac_mar_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_pch_gbe_hw_to_adapter
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_netdev_dbg
	ldr	w8, [x21]
	ldr	w9, [x21, #8]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x21, #16]
	orr	w8, w8, w9, lsl #16
	ldr	w9, [x21, #24]
	orr	w22, w8, w9, lsl #24
	ldr	w8, [x21, #32]
	ldr	w9, [x21, #40]
	orr	w21, w8, w9, lsl #8
	ldr	x0, [x19]
	bl	_ioread32
	mov	x23, x0
	mov	w8, #1
	lsl	w24, w8, w20
	orr	w0, w0, w24
	ldr	x1, [x19]
	bl	_iowrite32
	ldr	x0, [x19]
Lloh2:
	adrp	x25, _PCH_GBE_BUSY@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PCH_GBE_BUSY@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_pch_gbe_wait_clr_bit
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	sbfiz	x20, x20, #3, #32
	add	x8, x8, x20
	add	x1, x8, #4
	mov	x0, x22
	bl	_iowrite32
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x1, x8, x20
	mov	x0, x21
	bl	_iowrite32
	bic	w0, w23, w24
	ldr	x1, [x19]
	bl	_iowrite32
	ldr	x0, [x19]
	ldr	w1, [x25]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pch_gbe_wait_clr_bit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index : 0x%x\n"

	.comm	_PCH_GBE_BUSY,4,2               ; @PCH_GBE_BUSY
	.no_dead_strip	_pch_gbe_mac_mar_set
.subsections_via_symbols
