	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_query_phys_parms_rsp
_handle_query_phys_parms_rsp:           ## @handle_query_phys_parms_rsp
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %r12
	movl	8(%rdi), %edi
	callq	_cpu_to_be32
	movl	4(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_netdev_err
	jmp	LBB0_12
LBB0_2:
	movl	%eax, %r13d
	leal	-128(%r13), %eax
	cmpl	$8, %eax
	jae	LBB0_3
## %bb.5:
	cltq
	leaq	l_switch.table.handle_query_phys_parms_rsp(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	%r12, %rdi
	callq	_netif_carrier_ok
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movq	%rcx, %r12
	callq	_netdev_warn
	movq	%r12, %rcx
LBB0_6:
	movl	(%rcx), %eax
	movl	%eax, 4(%r14)
	movl	(%rbx), %eax
	movq	_IBMVNIC_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_IBMVNIC_HALF_DUPLEX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %d in QUERY_PHYS_PARMS\n"

	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_SPEED_25000,4,2                ## @SPEED_25000
	.comm	_SPEED_40000,4,2                ## @SPEED_40000
	.comm	_SPEED_50000,4,2                ## @SPEED_50000
	.comm	_SPEED_100000,4,2               ## @SPEED_100000
L_.str.1:                               ## @.str.1
	.asciz	"Unknown speed 0x%08x\n"

	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_IBMVNIC_FULL_DUPLEX,4,2        ## @IBMVNIC_FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_IBMVNIC_HALF_DUPLEX,4,2        ## @IBMVNIC_HALF_DUPLEX
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.no_dead_strip	_handle_query_phys_parms_rsp
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.handle_query_phys_parms_rsp
l_switch.table.handle_query_phys_parms_rsp:
	.quad	_SPEED_50000
	.quad	_SPEED_40000
	.quad	_SPEED_25000
	.quad	_SPEED_1000
	.quad	_SPEED_10
	.quad	_SPEED_10000
	.quad	_SPEED_100
	.quad	_SPEED_100000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_query_phys_parms_rsp
_handle_query_phys_parms_rsp:           ; @handle_query_phys_parms_rsp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1, #8]
	ldr	w0, [x0, #8]
	bl	_cpu_to_be32
	ldr	w19, [x21, #4]
	cbz	w19, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_netdev_err
	b	LBB0_13
LBB0_2:
	mov	x23, x0
	sub	w8, w0, #128
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.3:
Lloh2:
	adrp	x9, l_switch.table.handle_query_phys_parms_rsp@PAGE
Lloh3:
	add	x9, x9, l_switch.table.handle_query_phys_parms_rsp@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_7
LBB0_4:
	mov	x0, x22
	bl	_netif_carrier_ok
	cbz	w0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_netdev_warn
LBB0_6:
Lloh6:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _IBMVNIC_FULL_DUPLEX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IBMVNIC_FULL_DUPLEX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x9, _IBMVNIC_HALF_DUPLEX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IBMVNIC_HALF_DUPLEX@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh16:
	adrp	x8, _DUPLEX_HALF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DUPLEX_HALF@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_13:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %d in QUERY_PHYS_PARMS\n"

	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_SPEED_25000,4,2                ; @SPEED_25000
	.comm	_SPEED_40000,4,2                ; @SPEED_40000
	.comm	_SPEED_50000,4,2                ; @SPEED_50000
	.comm	_SPEED_100000,4,2               ; @SPEED_100000
l_.str.1:                               ; @.str.1
	.asciz	"Unknown speed 0x%08x\n"

	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_IBMVNIC_FULL_DUPLEX,4,2        ; @IBMVNIC_FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_IBMVNIC_HALF_DUPLEX,4,2        ; @IBMVNIC_HALF_DUPLEX
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.no_dead_strip	_handle_query_phys_parms_rsp
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.handle_query_phys_parms_rsp
l_switch.table.handle_query_phys_parms_rsp:
	.quad	_SPEED_50000
	.quad	_SPEED_40000
	.quad	_SPEED_25000
	.quad	_SPEED_1000
	.quad	_SPEED_10
	.quad	_SPEED_10000
	.quad	_SPEED_100
	.quad	_SPEED_100000

.subsections_via_symbols
