	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e1xxx_advertise
_mv88e1xxx_advertise:                   ## @mv88e1xxx_advertise
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	movq	_ADVERTISED_1000baseT_Half@GOTPCREL(%rip), %r12
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	orl	(%r12), %eax
	testl	%esi, %eax
	je	LBB0_1
## %bb.2:
	movq	_MII_GBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_simple_mdio_read
	movq	_GBCR_ADV_1000HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GBCR_ADV_1000FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	orl	%ecx, %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	testl	%ebx, (%r12)
	je	LBB0_4
## %bb.3:
	orl	%ecx, %edx
	movl	%edx, -36(%rbp)
LBB0_4:
	testl	%ebx, (%r15)
	je	LBB0_6
## %bb.5:
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	jmp	LBB0_6
LBB0_1:
	xorl	%edx, %edx
LBB0_6:
	movq	_MII_GBCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_simple_mdio_write
	movl	$1, -36(%rbp)
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.8:
	movq	_ADVERTISE_10HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	$1, %edx
	movl	%edx, -36(%rbp)
	jmp	LBB0_9
LBB0_7:
	movl	$1, %edx
LBB0_9:
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
LBB0_11:
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
LBB0_13:
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.14:
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
LBB0_15:
	movq	_ADVERTISED_PAUSE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.16:
	movq	_ADVERTISE_PAUSE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
LBB0_17:
	movq	_ADVERTISED_ASYM_PAUSE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_19
## %bb.18:
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
LBB0_19:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_simple_mdio_write
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADVERTISED_1000baseT_Half,4,2  ## @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_MII_GBCR,4,2                   ## @MII_GBCR
	.comm	_GBCR_ADV_1000HALF,4,2          ## @GBCR_ADV_1000HALF
	.comm	_GBCR_ADV_1000FULL,4,2          ## @GBCR_ADV_1000FULL
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISE_10HALF,4,2           ## @ADVERTISE_10HALF
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISE_10FULL,4,2           ## @ADVERTISE_10FULL
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISE_100HALF,4,2          ## @ADVERTISE_100HALF
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_ADVERTISE_100FULL,4,2          ## @ADVERTISE_100FULL
	.comm	_ADVERTISED_PAUSE,4,2           ## @ADVERTISED_PAUSE
	.comm	_ADVERTISE_PAUSE,4,2            ## @ADVERTISE_PAUSE
	.comm	_ADVERTISED_ASYM_PAUSE,4,2      ## @ADVERTISED_ASYM_PAUSE
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.no_dead_strip	_mv88e1xxx_advertise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e1xxx_advertise
_mv88e1xxx_advertise:                   ; @mv88e1xxx_advertise
	.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	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x23, _ADVERTISED_1000baseT_Half@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADVERTISED_1000baseT_Half@GOTPAGEOFF]
Lloh2:
	adrp	x22, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh4:
	adrp	x21, _MII_GBCR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MII_GBCR@GOTPAGEOFF]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.1:
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_simple_mdio_read
Lloh6:
	adrp	x8, _GBCR_ADV_1000HALF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GBCR_ADV_1000HALF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x8, _GBCR_ADV_1000FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GBCR_ADV_1000FULL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w10, w8, w9
	ldr	w11, [sp, #12]
	bic	w2, w11, w10
	str	w2, [sp, #12]
	ldr	w10, [x23]
	tst	w10, w20
	b.eq	LBB0_3
; %bb.2:
	orr	w2, w2, w9
	str	w2, [sp, #12]
LBB0_3:
	ldr	w9, [x22]
	tst	w9, w20
	b.eq	LBB0_6
; %bb.4:
	orr	w2, w2, w8
	str	w2, [sp, #12]
	b	LBB0_6
LBB0_5:
	mov	w2, #0
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_simple_mdio_write
	mov	w2, #1
	str	w2, [sp, #12]
Lloh12:
	adrp	x8, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _ADVERTISE_10HALF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADVERTISE_10HALF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w2, w8, #0x1
	str	w2, [sp, #12]
LBB0_8:
Lloh18:
	adrp	x8, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
Lloh21:
	adrp	x8, _ADVERTISE_10FULL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADVERTISE_10FULL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w2, w2, w8
	str	w2, [sp, #12]
LBB0_10:
Lloh24:
	adrp	x8, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
Lloh27:
	adrp	x8, _ADVERTISE_100HALF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w2, w2, w8
	str	w2, [sp, #12]
LBB0_12:
Lloh30:
	adrp	x8, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
Lloh33:
	adrp	x8, _ADVERTISE_100FULL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w2, w2, w8
	str	w2, [sp, #12]
LBB0_14:
Lloh36:
	adrp	x8, _ADVERTISED_PAUSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ADVERTISED_PAUSE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
Lloh39:
	adrp	x8, _ADVERTISE_PAUSE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ADVERTISE_PAUSE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w2, w2, w8
	str	w2, [sp, #12]
LBB0_16:
Lloh42:
	adrp	x8, _ADVERTISED_ASYM_PAUSE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ADVERTISED_ASYM_PAUSE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.17:
Lloh45:
	adrp	x8, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	orr	w2, w2, w8
	str	w2, [sp, #12]
LBB0_18:
Lloh48:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_simple_mdio_write
	mov	w0, #0
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_ADVERTISED_1000baseT_Half,4,2  ; @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_MII_GBCR,4,2                   ; @MII_GBCR
	.comm	_GBCR_ADV_1000HALF,4,2          ; @GBCR_ADV_1000HALF
	.comm	_GBCR_ADV_1000FULL,4,2          ; @GBCR_ADV_1000FULL
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISE_10HALF,4,2           ; @ADVERTISE_10HALF
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISE_10FULL,4,2           ; @ADVERTISE_10FULL
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISE_100HALF,4,2          ; @ADVERTISE_100HALF
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_ADVERTISE_100FULL,4,2          ; @ADVERTISE_100FULL
	.comm	_ADVERTISED_PAUSE,4,2           ; @ADVERTISED_PAUSE
	.comm	_ADVERTISE_PAUSE,4,2            ; @ADVERTISE_PAUSE
	.comm	_ADVERTISED_ASYM_PAUSE,4,2      ; @ADVERTISED_ASYM_PAUSE
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.no_dead_strip	_mv88e1xxx_advertise
.subsections_via_symbols
