	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_peak_canfd_dev           ## -- Begin function alloc_peak_canfd_dev
	.p2align	4, 0x90
_alloc_peak_canfd_dev:                  ## @alloc_peak_canfd_dev
	.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
	movl	%esi, %r14d
	testl	%edx, %edx
	jns	LBB0_2
## %bb.1:
	movq	_PCANFD_ECHO_SKB_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	movl	%edx, %esi
	callq	_alloc_candev
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 64(%rax)
	movq	_peak_canfd_nominal_const@GOTPCREL(%rip), %rcx
	movq	%rcx, 56(%rax)
	movq	_peak_canfd_data_const@GOTPCREL(%rip), %rcx
	movq	%rcx, 48(%rax)
	movq	_peak_canfd_set_mode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	_peak_canfd_get_berr_counter@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_peak_canfd_set_bittiming@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_peak_canfd_set_data_bittiming@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rcx
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_CAN_CTRLMODE_FD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_CAN_CTRLMODE_FD_NON_ISO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_CAN_CTRLMODE_BERR_REPORTING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 24(%rax)
	movq	%rbx, 16(%rax)
	movl	%r14d, (%rax)
	movq	$0, 8(%rax)
	leaq	4(%rax), %rdi
	callq	_spin_lock_init
	movq	_IFF_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_peak_canfd_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	%r14d, (%rbx)
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCANFD_ECHO_SKB_MAX,4,2        ## @PCANFD_ECHO_SKB_MAX
	.comm	_CAN_STATE_STOPPED,4,2          ## @CAN_STATE_STOPPED
	.comm	_peak_canfd_nominal_const,4,2   ## @peak_canfd_nominal_const
	.comm	_peak_canfd_data_const,4,2      ## @peak_canfd_data_const
	.comm	_peak_canfd_set_mode,4,2        ## @peak_canfd_set_mode
	.comm	_peak_canfd_get_berr_counter,4,2 ## @peak_canfd_get_berr_counter
	.comm	_peak_canfd_set_bittiming,4,2   ## @peak_canfd_set_bittiming
	.comm	_peak_canfd_set_data_bittiming,4,2 ## @peak_canfd_set_data_bittiming
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_CAN_CTRLMODE_FD,4,2            ## @CAN_CTRLMODE_FD
	.comm	_CAN_CTRLMODE_FD_NON_ISO,4,2    ## @CAN_CTRLMODE_FD_NON_ISO
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ## @CAN_CTRLMODE_BERR_REPORTING
	.comm	_IFF_ECHO,4,2                   ## @IFF_ECHO
	.comm	_peak_canfd_netdev_ops,4,2      ## @peak_canfd_netdev_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_peak_canfd_dev           ; -- Begin function alloc_peak_canfd_dev
	.p2align	2
_alloc_peak_canfd_dev:                  ; @alloc_peak_canfd_dev
	.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, x1
Lloh0:
	adrp	x8, _PCANFD_ECHO_SKB_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCANFD_ECHO_SKB_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w2, #0
	csel	w1, w8, w2, lt
	bl	_alloc_candev
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_netdev_priv
Lloh3:
	adrp	x8, _CAN_STATE_STOPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #64]
Lloh6:
	adrp	x8, _peak_canfd_nominal_const@GOTPAGE
Lloh7:
	ldr	x8, [x8, _peak_canfd_nominal_const@GOTPAGEOFF]
Lloh8:
	adrp	x9, _peak_canfd_data_const@GOTPAGE
Lloh9:
	ldr	x9, [x9, _peak_canfd_data_const@GOTPAGEOFF]
	stp	x9, x8, [x0, #48]
Lloh10:
	adrp	x8, _peak_canfd_set_mode@GOTPAGE
Lloh11:
	ldr	x8, [x8, _peak_canfd_set_mode@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #40]
Lloh13:
	adrp	x8, _peak_canfd_get_berr_counter@GOTPAGE
Lloh14:
	ldr	x8, [x8, _peak_canfd_get_berr_counter@GOTPAGEOFF]
Lloh15:
	adrp	x9, _peak_canfd_set_bittiming@GOTPAGE
Lloh16:
	ldr	x9, [x9, _peak_canfd_set_bittiming@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh19:
	adrp	x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh26:
	ldr	x10, [x10, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh27:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _CAN_CTRLMODE_FD@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CAN_CTRLMODE_FD@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _CAN_CTRLMODE_FD_NON_ISO@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CAN_CTRLMODE_FD_NON_ISO@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh35:
	ldr	x10, [x10, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh36:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh37:
	adrp	x9, _peak_canfd_set_data_bittiming@GOTPAGE
Lloh38:
	ldr	x9, [x9, _peak_canfd_set_data_bittiming@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w8, w9, [x0, #24]
	str	w19, [x0]
	add	x8, x0, #4
	stp	xzr, x20, [x0, #8]
	mov	x0, x8
	bl	_spin_lock_init
Lloh40:
	adrp	x8, _IFF_ECHO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IFF_ECHO@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
Lloh43:
	adrp	x8, _peak_canfd_netdev_ops@GOTPAGE
Lloh44:
	ldr	x8, [x8, _peak_canfd_netdev_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	str	w19, [x20]
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCANFD_ECHO_SKB_MAX,4,2        ; @PCANFD_ECHO_SKB_MAX
	.comm	_CAN_STATE_STOPPED,4,2          ; @CAN_STATE_STOPPED
	.comm	_peak_canfd_nominal_const,4,2   ; @peak_canfd_nominal_const
	.comm	_peak_canfd_data_const,4,2      ; @peak_canfd_data_const
	.comm	_peak_canfd_set_mode,4,2        ; @peak_canfd_set_mode
	.comm	_peak_canfd_get_berr_counter,4,2 ; @peak_canfd_get_berr_counter
	.comm	_peak_canfd_set_bittiming,4,2   ; @peak_canfd_set_bittiming
	.comm	_peak_canfd_set_data_bittiming,4,2 ; @peak_canfd_set_data_bittiming
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_CAN_CTRLMODE_FD,4,2            ; @CAN_CTRLMODE_FD
	.comm	_CAN_CTRLMODE_FD_NON_ISO,4,2    ; @CAN_CTRLMODE_FD_NON_ISO
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ; @CAN_CTRLMODE_BERR_REPORTING
	.comm	_IFF_ECHO,4,2                   ; @IFF_ECHO
	.comm	_peak_canfd_netdev_ops,4,2      ; @peak_canfd_netdev_ops
.subsections_via_symbols
