	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srom_map_media
_srom_map_media:                        ## @srom_map_media
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movl	$0, (%rax)
	movl	4(%rax), %edx
	xorl	%ecx, %ecx
	cmpl	8(%rax), %edx
	je	LBB0_20
## %bb.1:
	leal	-128(%rdx), %esi
	cmpl	$9, %esi
	ja	LBB0_18
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_13:
	cmpl	$0, 16(%rax)
	je	LBB0_19
## %bb.14:
	movl	$1, (%rax)
	jmp	LBB0_15
LBB0_22:
	movl	$-1, %ecx
	cmpl	$0, 16(%rax)
	jne	LBB0_20
LBB0_15:
	movq	__100Mb@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_3:
	cmpl	$0, 16(%rax)
	je	LBB0_19
## %bb.4:
	movl	$1, (%rax)
	jmp	LBB0_5
LBB0_21:
	movl	$-1, %ecx
	cmpl	$0, 16(%rax)
	jne	LBB0_20
LBB0_5:
	movl	12(%rax), %ecx
	movq	_DC21140@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_7
## %bb.6:
	andl	$-256, %ecx
	movq	_DC2114x@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
LBB0_7:
	movq	__10Mb@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_12:
	movq	_AUI@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_10:
	movq	_BNC@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_17:
	movl	$137, 8(%rax)
	movl	16(%rax), %edx
	movl	%edx, (%rax)
	jmp	LBB0_20
LBB0_18:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_printk
LBB0_19:
	movl	$-1, %ecx
	jmp	LBB0_20
LBB0_16:
	movq	__100Mb@GOTPCREL(%rip), %rdx
LBB0_11:
	movl	(%rdx), %edx
	movl	%edx, 8(%rax)
	jmp	LBB0_20
LBB0_9:
	movq	_TP@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	xorl	%ecx, %ecx
LBB0_20:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_21
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_22
	.long	L0_0_set_13
	.long	L0_0_set_22
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_DC21140,4,2                    ## @DC21140
	.comm	_DC2114x,4,2                    ## @DC2114x
	.comm	__10Mb,4,2                      ## @_10Mb
	.comm	_TP,4,2                         ## @TP
	.comm	_BNC,4,2                        ## @BNC
	.comm	_AUI,4,2                        ## @AUI
	.comm	__100Mb,8,3                     ## @_100Mb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Bad media code [%d] detected in SROM!\n"

	.no_dead_strip	_srom_map_media
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srom_map_media
_srom_map_media:                        ; @srom_map_media
	.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, x0
	bl	_netdev_priv
	mov	x8, x0
	mov	w0, #0
	str	wzr, [x8]
	ldp	w2, w9, [x8, #4]
	cmp	w2, w9
	b.eq	LBB0_20
; %bb.1:
	sub	w9, w2, #128
	cmp	w9, #9
	b.hi	LBB0_10
; %bb.2:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_14
; %bb.4:
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_6
LBB0_5:
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_14
LBB0_6:
	mov	w0, #0
Lloh2:
	adrp	x9, __100Mb@GOTPAGE
Lloh3:
	ldr	x9, [x9, __100Mb@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	str	w9, [x8, #8]
	b	LBB0_20
LBB0_7:
	mov	w0, #0
Lloh5:
	adrp	x9, _AUI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AUI@GOTPAGEOFF]
	b	LBB0_19
LBB0_8:
	mov	w0, #0
Lloh7:
	adrp	x9, _BNC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BNC@GOTPAGEOFF]
	b	LBB0_19
LBB0_9:
	mov	w0, #0
	mov	w9, #137
	str	w9, [x8, #8]
	ldr	w9, [x8, #16]
	str	w9, [x8]
	b	LBB0_20
LBB0_10:
	ldr	w1, [x19]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	b	LBB0_14
LBB0_11:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_14
; %bb.12:
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_15
LBB0_13:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_15
LBB0_14:
	mov	w0, #-1
	b	LBB0_20
LBB0_15:
	ldr	w9, [x8, #12]
Lloh11:
	adrp	x10, _DC21140@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DC21140@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_17
; %bb.16:
	and	w9, w9, #0xffffff00
Lloh14:
	adrp	x10, _DC2114x@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DC2114x@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_18
LBB0_17:
	mov	w0, #0
Lloh17:
	adrp	x9, __10Mb@GOTPAGE
Lloh18:
	ldr	x9, [x9, __10Mb@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
	mov	w0, #0
Lloh19:
	adrp	x9, _TP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TP@GOTPAGEOFF]
LBB0_19:
	ldr	w9, [x9]
	str	w9, [x8, #8]
LBB0_20:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.comm	_DC21140,4,2                    ; @DC21140
	.comm	_DC2114x,4,2                    ; @DC2114x
	.comm	__10Mb,4,2                      ; @_10Mb
	.comm	_TP,4,2                         ; @TP
	.comm	_BNC,4,2                        ; @BNC
	.comm	_AUI,4,2                        ; @AUI
	.comm	__100Mb,8,3                     ; @_100Mb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Bad media code [%d] detected in SROM!\n"

	.no_dead_strip	_srom_map_media
.subsections_via_symbols
