	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_devlink_register         ## -- Begin function ionic_devlink_register
	.p2align	4, 0x90
_ionic_devlink_register:                ## @ionic_devlink_register
	.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
	movq	%rdi, %rbx
	callq	_priv_to_devlink
	movq	%rax, %r12
	movl	12(%rbx), %esi
	movq	%rax, %rdi
	callq	_devlink_register
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_5
LBB0_2:
	leaq	8(%rbx), %r15
	movq	_DEVLINK_PORT_FLAVOUR_PHYSICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devlink_port_attrs_set
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_devlink_port_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r12d, %r14d
	jmp	LBB0_5
LBB0_4:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_devlink_port_type_eth_set
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"devlink_register failed: %d\n"

	.comm	_DEVLINK_PORT_FLAVOUR_PHYSICAL,4,2 ## @DEVLINK_PORT_FLAVOUR_PHYSICAL
L_.str.1:                               ## @.str.1
	.asciz	"devlink_port_register failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_devlink_register         ; -- Begin function ionic_devlink_register
	.p2align	2
_ionic_devlink_register:                ; @ionic_devlink_register
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_priv_to_devlink
	mov	x22, x0
	ldr	w1, [x19, #12]
	bl	_devlink_register
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
	b	LBB0_5
LBB0_2:
	add	x21, x19, #8
Lloh2:
	adrp	x8, _DEVLINK_PORT_FLAVOUR_PHYSICAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEVLINK_PORT_FLAVOUR_PHYSICAL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_devlink_port_attrs_set
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	bl	_devlink_port_register
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #12]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_devlink_port_type_eth_set
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"devlink_register failed: %d\n"

	.comm	_DEVLINK_PORT_FLAVOUR_PHYSICAL,4,2 ; @DEVLINK_PORT_FLAVOUR_PHYSICAL
l_.str.1:                               ; @.str.1
	.asciz	"devlink_port_register failed: %d\n"

.subsections_via_symbols
