	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8367b_switch_init
_rtl8367b_switch_init:                  ## @rtl8367b_switch_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, 8(%rdi)
	movl	(%rdi), %edi
	movl	4(%rbx), %eax
	movl	%eax, 40(%rbx)
	movq	_RTL8367B_NUM_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_RTL8367B_NUM_VIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_rtl8367b_sw_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	callq	_dev_name
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_register_switch
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTL8367B"

	.comm	_RTL8367B_NUM_PORTS,4,2         ## @RTL8367B_NUM_PORTS
	.comm	_RTL8367B_NUM_VIDS,4,2          ## @RTL8367B_NUM_VIDS
	.comm	_rtl8367b_sw_ops,4,2            ## @rtl8367b_sw_ops
L_.str.1:                               ## @.str.1
	.asciz	"switch registration failed\n"

	.no_dead_strip	_rtl8367b_switch_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8367b_switch_init
_rtl8367b_switch_init:                  ; @rtl8367b_switch_init
	.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
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	mov	x20, x0
	str	x8, [x20, #8]!
	ldp	w0, w8, [x0]
	str	w8, [x19, #40]
Lloh2:
	adrp	x8, _RTL8367B_NUM_PORTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTL8367B_NUM_PORTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _RTL8367B_NUM_VIDS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RTL8367B_NUM_VIDS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh8:
	adrp	x8, _rtl8367b_sw_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rtl8367b_sw_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	bl	_dev_name
	str	w0, [x19, #16]
	mov	x0, x20
	mov	x1, #0
	bl	_register_switch
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTL8367B"

	.comm	_RTL8367B_NUM_PORTS,4,2         ; @RTL8367B_NUM_PORTS
	.comm	_RTL8367B_NUM_VIDS,4,2          ; @RTL8367B_NUM_VIDS
	.comm	_rtl8367b_sw_ops,4,2            ; @rtl8367b_sw_ops
l_.str.1:                               ; @.str.1
	.asciz	"switch registration failed\n"

	.no_dead_strip	_rtl8367b_switch_init
.subsections_via_symbols
