	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_init_hw_struct
_e1000_init_hw_struct:                  ## @e1000_init_hw_struct
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	movl	16(%rdi), %eax
	movl	%eax, 76(%rsi)
	movups	(%rdi), %xmm0
	movups	%xmm0, 60(%rsi)
	movq	_PCI_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	56(%rbx), %rdx
	callq	_pci_read_config_word
	movq	(%r14), %rax
	movq	_ENET_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	_ETHERNET_FCS_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	%rcx, 48(%rbx)
	movq	_MINIMUM_ETHERNET_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	%rbx, %rdi
	callq	_e1000_set_mac_type
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_e_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movl	(%rbx), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, 4(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_e1000_set_media_type
	movq	%rbx, %rdi
	callq	_e1000_get_bus_info
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 8(%rbx)
	movl	$1, 16(%rbx)
	movq	24(%rbx), %rcx
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	_AUTO_ALL_MODES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rbx)
	movl	$0, 32(%rbx)
	movq	_E1000_MASTER_SLAVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_COMMAND,4,2                ## @PCI_COMMAND
	.comm	_ENET_HEADER_SIZE,8,3           ## @ENET_HEADER_SIZE
	.comm	_ETHERNET_FCS_SIZE,8,3          ## @ETHERNET_FCS_SIZE
	.comm	_MINIMUM_ETHERNET_FRAME_SIZE,4,2 ## @MINIMUM_ETHERNET_FRAME_SIZE
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown MAC Type\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_AUTO_ALL_MODES,4,2             ## @AUTO_ALL_MODES
	.comm	_E1000_MASTER_SLAVE,4,2         ## @E1000_MASTER_SLAVE
	.no_dead_strip	_e1000_init_hw_struct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function e1000_init_hw_struct
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_e1000_init_hw_struct:                  ; @e1000_init_hw_struct
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x0, #16]
	str	w8, [x1, #76]
	ldr	q0, [x0]
	stur	q0, [x1, #60]
Lloh0:
	adrp	x8, _PCI_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x19, #56
	bl	_pci_read_config_word
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _ENET_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENET_HEADER_SIZE@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ETHERNET_FCS_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ETHERNET_FCS_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x8, x8, x10
	str	x8, [x19, #48]
Lloh9:
	adrp	x8, _MINIMUM_ETHERNET_FRAME_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MINIMUM_ETHERNET_FRAME_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	mov	x0, x19
	bl	_e1000_set_mac_type
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _probe@GOTPAGE
Lloh13:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_e_err
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_4:
	mov	x0, x19
	bl	_e1000_set_media_type
	mov	x0, x19
	bl	_e1000_get_bus_info
Lloh20:
	adrp	x8, lCPI0_0@PAGE
Lloh21:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x19, #24]
Lloh22:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh23:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
Lloh25:
	adrp	x8, _AUTO_ALL_MODES@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AUTO_ALL_MODES@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh28:
	adrp	x8, _E1000_MASTER_SLAVE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _E1000_MASTER_SLAVE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	stp	wzr, w8, [x19, #32]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_COMMAND,4,2                ; @PCI_COMMAND
	.comm	_ENET_HEADER_SIZE,8,3           ; @ENET_HEADER_SIZE
	.comm	_ETHERNET_FCS_SIZE,8,3          ; @ETHERNET_FCS_SIZE
	.comm	_MINIMUM_ETHERNET_FRAME_SIZE,4,2 ; @MINIMUM_ETHERNET_FRAME_SIZE
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown MAC Type\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_AUTO_ALL_MODES,4,2             ; @AUTO_ALL_MODES
	.comm	_E1000_MASTER_SLAVE,4,2         ; @E1000_MASTER_SLAVE
	.no_dead_strip	_e1000_init_hw_struct
.subsections_via_symbols
