	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehea_sense_port_attr           ## -- Begin function ehea_sense_port_attr
	.p2align	4, 0x90
_ehea_sense_port_attr:                  ## @ehea_sense_port_attr
	.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, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	40(%r15), %rax
	movl	(%rax), %r13d
	movl	32(%r15), %r12d
	movq	_H_PORT_CB0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_H_PORT_CB0_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_EHEA_BMASK_SET
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_ehea_h_query_ehea_port
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	(%r14), %eax
	shll	$16, %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	4(%r14), %ecx
	xorl	%eax, %eax
	addl	$-128, %ecx
	cmpl	$5, %ecx
	ja	LBB0_7
## %bb.8:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_13:
	movq	_EHEA_SPEED_1G@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_5:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_7:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_9:
	movq	_EHEA_SPEED_10M@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_16
LBB0_10:
	movq	_EHEA_SPEED_10M@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_EHEA_SPEED_10G@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_EHEA_SPEED_100M@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_16
LBB0_12:
	movq	_EHEA_SPEED_100M@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rcx
	movl	$1, %eax
LBB0_16:
	movq	%rcx, 24(%r15)
	movl	%eax, 4(%r15)
	movl	$1, 8(%r15)
	movl	8(%r14), %eax
	movl	%eax, 12(%r15)
	movq	_use_mcs@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_17
## %bb.19:
	movl	%eax, 16(%r15)
	testl	%eax, %eax
	jne	LBB0_18
## %bb.20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.22:
	negl	%ebx
	jmp	LBB0_23
LBB0_17:
	movl	$1, 16(%r15)
LBB0_18:
	movq	%r15, %rdi
	callq	_netif_msg_probe
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_24
LBB0_23:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_ehea_dump
LBB0_24:
	movq	%r14, %rdi
	callq	_free_page
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no mem for cb0\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_H_PORT_CB0,4,2                 ## @H_PORT_CB0
	.comm	_H_PORT_CB0_ALL,4,2             ## @H_PORT_CB0_ALL
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_EHEA_SPEED_10M,8,3             ## @EHEA_SPEED_10M
	.comm	_EHEA_SPEED_100M,8,3            ## @EHEA_SPEED_100M
	.comm	_EHEA_SPEED_1G,8,3              ## @EHEA_SPEED_1G
	.comm	_EHEA_SPEED_10G,8,3             ## @EHEA_SPEED_10G
	.comm	_use_mcs,8,3                    ## @use_mcs
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"ehea_sense_port_attr"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehea_sense_port_attr           ; -- Begin function ehea_sense_port_attr
	.p2align	2
_ehea_sense_port_attr:                  ; @ehea_sense_port_attr
	.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, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_zeroed_page
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #40]
	ldr	w21, [x8]
	ldr	w22, [x20, #32]
Lloh3:
	adrp	x8, _H_PORT_CB0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H_PORT_CB0@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _H_PORT_CB0_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H_PORT_CB0_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_EHEA_BMASK_SET
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x4, x19
	bl	_ehea_h_query_ehea_port
Lloh9:
	adrp	x8, _H_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x19]
	lsl	w8, w8, #16
	str	w8, [x20]
	mov	x0, x20
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_8
; %bb.3:
	ldr	w8, [x19, #4]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_9
; %bb.4:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh14:
	adrp	x8, _EHEA_SPEED_1G@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EHEA_SPEED_1G@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_24
LBB0_7:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cbnz	w8, LBB0_19
	b	LBB0_21
LBB0_8:
Lloh24:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cbnz	w8, LBB0_19
	b	LBB0_21
LBB0_9:
	mov	x9, #0
	mov	w8, #0
	b	LBB0_16
LBB0_10:
	mov	w8, #0
Lloh27:
	adrp	x9, _EHEA_SPEED_10M@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EHEA_SPEED_10M@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	b	LBB0_16
LBB0_11:
Lloh30:
	adrp	x8, _EHEA_SPEED_10M@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EHEA_SPEED_10M@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh32:
	adrp	x8, _EHEA_SPEED_10G@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EHEA_SPEED_10G@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	mov	w8, #0
Lloh34:
	adrp	x9, _EHEA_SPEED_100M@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EHEA_SPEED_100M@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	b	LBB0_16
LBB0_14:
Lloh37:
	adrp	x8, _EHEA_SPEED_100M@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EHEA_SPEED_100M@GOTPAGEOFF]
LBB0_15:
	ldr	x9, [x8]
	mov	w8, #1
LBB0_16:
	str	x9, [x20, #24]
	mov	w9, #1
	stp	w8, w9, [x20, #4]
	ldr	w8, [x19, #8]
	str	w8, [x20, #12]
Lloh39:
	adrp	x10, _use_mcs@GOTPAGE
Lloh40:
	ldr	x10, [x10, _use_mcs@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	cbz	x10, LBB0_20
; %bb.17:
	str	w8, [x20, #16]
	cbnz	w8, LBB0_21
; %bb.18:
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cbz	w8, LBB0_21
LBB0_19:
	neg	w21, w8
	b	LBB0_22
LBB0_20:
	str	w9, [x20, #16]
LBB0_21:
	mov	x0, x20
	bl	_netif_msg_probe
	mov	w21, #0
	mov	w20, #0
	cbz	x0, LBB0_23
LBB0_22:
Lloh45:
	adrp	x2, l_.str.1@PAGE
Lloh46:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #12
	bl	_ehea_dump
	mov	x20, x21
LBB0_23:
	mov	x0, x19
	bl	_free_page
LBB0_24:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no mem for cb0\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_H_PORT_CB0,4,2                 ; @H_PORT_CB0
	.comm	_H_PORT_CB0_ALL,4,2             ; @H_PORT_CB0_ALL
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_EHEA_SPEED_10M,8,3             ; @EHEA_SPEED_10M
	.comm	_EHEA_SPEED_100M,8,3            ; @EHEA_SPEED_100M
	.comm	_EHEA_SPEED_1G,8,3              ; @EHEA_SPEED_1G
	.comm	_EHEA_SPEED_10G,8,3             ; @EHEA_SPEED_10G
	.comm	_use_mcs,8,3                    ; @use_mcs
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"ehea_sense_port_attr"

.subsections_via_symbols
