	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_model
_get_model:                             ## @get_model
	.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	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_ip_phy_read
	movl	%eax, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_ip_phy_read
	movl	%eax, %r12d
	shll	$6, %r13d
	movl	%eax, %ebx
	shrl	$10, %ebx
	andl	$63, %ebx
	orl	%r13d, %ebx
	movl	%eax, %r13d
	shrl	$4, %r13d
	andl	$63, %r13d
	andl	$15, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	cmpl	$37059, %ebx                    ## imm = 0x90C3
	jne	LBB0_1
## %bb.2:
	movq	_IP175A@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_4
LBB0_3:
	movq	%rax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_IP175C@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r13d
	jne	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	movl	$5, %esi
	movl	$2, %edx
	callq	_ip_phy_read
	cmpl	$579, %eax                      ## imm = 0x243
	jne	LBB0_7
## %bb.6:
	movq	_IP178C@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_pr_warning
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_7:
	movq	%rbx, %r12
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$20, %esi
	xorl	%edx, %edx
	callq	_ip_phy_read
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	cmpl	$5981, %ebx                     ## imm = 0x175D
	jne	LBB0_9
## %bb.8:
	movq	_IP175D@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	jmp	LBB0_12
LBB0_9:
	movq	%r12, (%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IP17xx: Identified oui=%06x model=%02x rev=%X\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IP175A,4,2                     ## @IP175A
	.comm	_IP175C,4,2                     ## @IP175C
	.comm	_IP178C,4,2                     ## @IP178C
L_.str.1:                               ## @.str.1
	.asciz	"IP17xx: Chip ID register reads %04x\n"

	.comm	_IP175D,4,2                     ## @IP175D
L_.str.2:                               ## @.str.2
	.asciz	"IP17xx: Found an unknown IC+ switch with model number %02x, revision %X.\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_get_model
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_model
_get_model:                             ; @get_model
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w1, #0
	mov	w2, #2
	bl	_ip_phy_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #3
	bl	_ip_phy_read
	lsl	w22, w20, #6
	bfxil	w22, w0, #10, #6
	ubfx	w21, w0, #4, #6
	and	w20, w0, #0xf
	stp	x21, x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_debug
	mov	w8, #37059
	cmp	w22, w8
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _IP175A@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IP175A@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w21, w9
	b.ne	LBB0_6
; %bb.2:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh6:
	adrp	x22, _IP175C@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IP175C@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	w1, #5
	mov	w2, #2
	bl	_ip_phy_read
	cmp	w0, #579
	b.ne	LBB0_10
; %bb.8:
	mov	w0, #0
Lloh8:
	adrp	x8, _IP178C@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IP178C@GOTPAGEOFF]
	str	x8, [x19]
	b	LBB0_5
LBB0_9:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_pr_warning
Lloh12:
	adrp	x8, _EPERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	mov	x0, x19
	mov	w1, #20
	mov	w2, #0
	bl	_ip_phy_read
	mov	x20, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	mov	w8, #5981
	cmp	w20, w8
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
Lloh16:
	adrp	x8, _IP175D@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IP175D@GOTPAGEOFF]
	str	x8, [x19]
	b	LBB0_5
LBB0_12:
	mov	w0, #0
	str	x22, [x19]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IP17xx: Identified oui=%06x model=%02x rev=%X\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IP175A,4,2                     ; @IP175A
	.comm	_IP175C,4,2                     ; @IP175C
	.comm	_IP178C,4,2                     ; @IP178C
l_.str.1:                               ; @.str.1
	.asciz	"IP17xx: Chip ID register reads %04x\n"

	.comm	_IP175D,4,2                     ; @IP175D
l_.str.2:                               ; @.str.2
	.asciz	"IP17xx: Found an unknown IC+ switch with model number %02x, revision %X.\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_get_model
.subsections_via_symbols
