	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_dl_register               ## -- Begin function bnxt_dl_register
	.p2align	4, 0x90
_bnxt_dl_register:                      ## @bnxt_dl_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	%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
	cmpl	$67071, (%rdi)                  ## imm = 0x105FF
	jg	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_netdev_warn
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_2:
	movq	_bnxt_dl_ops@GOTPCREL(%rip), %rdi
	movl	$4, %esi
	callq	_devlink_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_bnxt_link_bp_to_dl
	movq	24(%r15), %rdi
	movq	_PCI_EXT_CAP_ID_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_ext_capability
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	cmpl	$67588, (%r15)                  ## imm = 0x10804
	jl	LBB0_7
## %bb.6:
	movq	_DEVLINK_ESWITCH_MODE_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
LBB0_7:
	movq	24(%r15), %rsi
	movq	%r14, %rdi
	callq	_devlink_register
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movl	8(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_17
LBB0_3:
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_netdev_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_9:
	movq	_bnxt_dl_params@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devlink_params_register
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movl	8(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_16
LBB0_11:
	leaq	4(%r15), %r12
	movq	_DEVLINK_PORT_FLAVOUR_PHYSICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	movl	16(%r15), %r9d
	movl	$4, (%rsp)
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_devlink_port_attrs_set
	movl	12(%r15), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_devlink_port_register
	movl	%eax, %ebx
	movl	8(%r15), %eax
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_netdev_err
	jmp	LBB0_15
LBB0_13:
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_devlink_port_type_eth_set
	movq	_bnxt_dl_port_params@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devlink_port_params_register
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movl	%eax, %ebx
	movl	8(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_netdev_err
	movq	%r12, %rdi
	callq	_devlink_port_unregister
LBB0_15:
	movl	(%r13), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_devlink_params_unregister
LBB0_16:
	movq	%r14, %rdi
	callq	_devlink_unregister
LBB0_17:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bnxt_link_bp_to_dl
	movq	%r14, %rdi
	callq	_devlink_free
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r14, %rdi
	callq	_devlink_params_publish
	movq	%r15, %rdi
	callq	_bnxt_dl_fw_reporters_create
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware does not support NVM params"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_bnxt_dl_ops,4,2                ## @bnxt_dl_ops
L_.str.1:                               ## @.str.1
	.asciz	"devlink_alloc failed"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ## @PCI_EXT_CAP_ID_SRIOV
	.comm	_DEVLINK_ESWITCH_MODE_LEGACY,4,2 ## @DEVLINK_ESWITCH_MODE_LEGACY
L_.str.2:                               ## @.str.2
	.asciz	"devlink_register failed. rc=%d"

	.comm	_bnxt_dl_params,4,2             ## @bnxt_dl_params
L_.str.3:                               ## @.str.3
	.asciz	"devlink_params_register failed. rc=%d"

	.comm	_DEVLINK_PORT_FLAVOUR_PHYSICAL,4,2 ## @DEVLINK_PORT_FLAVOUR_PHYSICAL
L_.str.4:                               ## @.str.4
	.asciz	"devlink_port_register failed"

	.comm	_bnxt_dl_port_params,4,2        ## @bnxt_dl_port_params
L_.str.5:                               ## @.str.5
	.asciz	"devlink_port_params_register failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_dl_register               ; -- Begin function bnxt_dl_register
	.p2align	2
_bnxt_dl_register:                      ; @bnxt_dl_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	mov	w21, #1536
	movk	w21, #1, lsl #16
	ldr	w8, [x0]
	cmp	w8, w21
	b.ge	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
Lloh2:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
Lloh4:
	adrp	x0, _bnxt_dl_ops@GOTPAGE
Lloh5:
	ldr	x0, [x0, _bnxt_dl_ops@GOTPAGEOFF]
	mov	w1, #4
	bl	_devlink_alloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_link_bp_to_dl
	ldr	x0, [x19, #24]
Lloh6:
	adrp	x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_pci_find_ext_capability
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x19]
	add	w9, w21, #515
	cmp	w8, w9
	b.le	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _DEVLINK_ESWITCH_MODE_LEGACY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEVLINK_ESWITCH_MODE_LEGACY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #32]
LBB0_6:
	ldr	x1, [x19, #24]
	mov	x0, x20
	bl	_devlink_register
	cbz	w0, LBB0_10
; %bb.7:
	mov	x21, x0
	ldr	w0, [x19, #8]
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_warn
	b	LBB0_18
LBB0_8:
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_warn
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_10:
Lloh18:
	adrp	x23, _bnxt_dl_params@GOTPAGE
Lloh19:
	ldr	x23, [x23, _bnxt_dl_params@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_devlink_params_register
	cbz	w0, LBB0_12
; %bb.11:
	mov	x21, x0
	ldr	w0, [x19, #8]
	str	x21, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_warn
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_17
LBB0_12:
	add	x22, x19, #4
Lloh22:
	adrp	x8, _DEVLINK_PORT_FLAVOUR_PHYSICAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DEVLINK_PORT_FLAVOUR_PHYSICAL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldp	w2, w5, [x19, #12]
	mov	x0, x22
	mov	w3, #0
	mov	w4, #0
	mov	w6, #4
	bl	_devlink_port_attrs_set
	ldr	w2, [x19, #12]
	mov	x0, x20
	mov	x1, x22
	bl	_devlink_port_register
	ldr	w8, [x19, #8]
	cbz	w0, LBB0_14
; %bb.13:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	bl	_netdev_err
	b	LBB0_16
LBB0_14:
	mov	x0, x22
	mov	x1, x8
	bl	_devlink_port_type_eth_set
Lloh27:
	adrp	x8, _bnxt_dl_port_params@GOTPAGE
Lloh28:
	ldr	x8, [x8, _bnxt_dl_port_params@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_devlink_port_params_register
	mov	x21, x0
	cbz	w0, LBB0_20
; %bb.15:
	ldr	w0, [x19, #8]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_netdev_err
	mov	x0, x22
	bl	_devlink_port_unregister
LBB0_16:
	ldr	w22, [x23]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_devlink_params_unregister
LBB0_17:
	mov	x0, x20
	bl	_devlink_unregister
LBB0_18:
	mov	x0, x19
	mov	x1, #0
	bl	_bnxt_link_bp_to_dl
	mov	x0, x20
	bl	_devlink_free
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
	mov	x0, x20
	bl	_devlink_params_publish
	mov	x0, x19
	bl	_bnxt_dl_fw_reporters_create
	b	LBB0_19
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware does not support NVM params"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_bnxt_dl_ops,4,2                ; @bnxt_dl_ops
l_.str.1:                               ; @.str.1
	.asciz	"devlink_alloc failed"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ; @PCI_EXT_CAP_ID_SRIOV
	.comm	_DEVLINK_ESWITCH_MODE_LEGACY,4,2 ; @DEVLINK_ESWITCH_MODE_LEGACY
l_.str.2:                               ; @.str.2
	.asciz	"devlink_register failed. rc=%d"

	.comm	_bnxt_dl_params,4,2             ; @bnxt_dl_params
l_.str.3:                               ; @.str.3
	.asciz	"devlink_params_register failed. rc=%d"

	.comm	_DEVLINK_PORT_FLAVOUR_PHYSICAL,4,2 ; @DEVLINK_PORT_FLAVOUR_PHYSICAL
l_.str.4:                               ; @.str.4
	.asciz	"devlink_port_register failed"

	.comm	_bnxt_dl_port_params,4,2        ; @bnxt_dl_port_params
l_.str.5:                               ; @.str.5
	.asciz	"devlink_port_params_register failed"

.subsections_via_symbols
