	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssi_protocol_probe
_ssi_protocol_probe:                    ## @ssi_protocol_probe
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_hsi_client
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	56(%rax), %rdi
	callq	_spin_lock_init
	leaq	52(%r15), %rdi
	movq	_ssip_rx_wd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TIMER_DEFERRABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_timer_setup
	leaq	48(%r15), %rdi
	movq	_ssip_tx_wd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_timer_setup
	leaq	44(%r15), %rdi
	movq	_ssip_keep_alive@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	40(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hsi_client_set_drvdata
	movq	%r12, 24(%r15)
	leaq	20(%r15), %rdi
	movq	_ssip_xmit_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_hsi_get_channel_id_by_name
	movq	%rax, %rbx
	movl	%ebx, (%r15)
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_hsi_get_channel_id_by_name
	movq	%rax, %rbx
	movl	%ebx, 4(%r15)
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_ssip_alloc_cmds
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ssip_pn_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	_ssi_protocol_probe.ifname(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_alloc_netdev
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_PHONET_MIN_MTU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_SSIP_MAX_MTU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	8(%r15), %rdi
	callq	_netif_carrier_off
	movq	8(%r15), %rdi
	callq	_register_netdev
	testl	%eax, %eax
	js	LBB0_12
## %bb.16:
	movq	%r15, %rdi
	addq	$16, %rdi
	movq	_ssip_list@GOTPCREL(%rip), %rsi
	callq	_list_add
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r15), %rdi
	callq	_free_netdev
LBB0_13:
	movq	%r15, %rdi
	callq	_ssip_free_cmds
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_ssi_protocol_probe.ifname:             ## @ssi_protocol_probe.ifname
	.asciz	"phonet%d"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ssip_rx_wd,4,2                 ## @ssip_rx_wd
	.comm	_TIMER_DEFERRABLE,4,2           ## @TIMER_DEFERRABLE
	.comm	_ssip_tx_wd,4,2                 ## @ssip_tx_wd
	.comm	_ssip_keep_alive,4,2            ## @ssip_keep_alive
	.comm	_ssip_xmit_work,4,2             ## @ssip_xmit_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mcsaab-control"

L_.str.1:                               ## @.str.1
	.asciz	"Could not get cmd channel (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"mcsaab-data"

L_.str.3:                               ## @.str.3
	.asciz	"Could not get data channel (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"No memory for commands\n"

	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_ssip_pn_setup,4,2              ## @ssip_pn_setup
L_.str.5:                               ## @.str.5
	.asciz	"No memory for netdev\n"

	.comm	_PHONET_MIN_MTU,4,2             ## @PHONET_MIN_MTU
	.comm	_SSIP_MAX_MTU,4,2               ## @SSIP_MAX_MTU
L_.str.6:                               ## @.str.6
	.asciz	"Register netdev failed (%d)\n"

	.comm	_ssip_list,4,2                  ## @ssip_list
L_.str.7:                               ## @.str.7
	.asciz	"channel configuration: cmd=%d, data=%d\n"

	.no_dead_strip	_ssi_protocol_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssi_protocol_probe
_ssi_protocol_probe:                    ; @ssi_protocol_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	bl	_to_hsi_client
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	add	x0, x0, #56
	bl	_spin_lock_init
	add	x0, x19, #52
Lloh3:
	adrp	x8, _ssip_rx_wd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ssip_rx_wd@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x22, _TIMER_DEFERRABLE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TIMER_DEFERRABLE@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_timer_setup
	add	x0, x19, #48
Lloh8:
	adrp	x8, _ssip_tx_wd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ssip_tx_wd@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_timer_setup
	add	x0, x19, #44
Lloh11:
	adrp	x8, _ssip_keep_alive@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ssip_keep_alive@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x21
	mov	x1, x19
	bl	_hsi_client_set_drvdata
	str	x21, [x19, #24]
	add	x0, x19, #20
Lloh14:
	adrp	x8, _ssip_xmit_work@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ssip_xmit_work@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_hsi_get_channel_id_by_name
	mov	x22, x0
	str	w22, [x19]
	tbnz	w22, #31, LBB0_8
; %bb.2:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_hsi_get_channel_id_by_name
	str	w0, [x19, #4]
	tbnz	w0, #31, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_ssip_alloc_cmds
	tbnz	w0, #31, LBB0_10
; %bb.4:
Lloh21:
	adrp	x8, _NET_NAME_UNKNOWN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _ssip_pn_setup@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ssip_pn_setup@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
Lloh27:
	adrp	x1, _ssi_protocol_probe.ifname@PAGE
Lloh28:
	add	x1, x1, _ssi_protocol_probe.ifname@PAGEOFF
	mov	w0, #0
	bl	_alloc_netdev
	str	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.5:
Lloh29:
	adrp	x8, _PHONET_MIN_MTU@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PHONET_MIN_MTU@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _SSIP_MAX_MTU@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SSIP_MAX_MTU@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	ldr	x0, [x19, #8]
	bl	_netif_carrier_off
	ldr	x0, [x19, #8]
	bl	_register_netdev
	tbnz	w0, #31, LBB0_15
; %bb.6:
	add	x0, x19, #16
Lloh35:
	adrp	x1, _ssip_list@GOTPAGE
Lloh36:
	ldr	x1, [x1, _ssip_list@GOTPAGEOFF]
	bl	_list_add
	ldp	w2, w3, [x19]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w22, #0
	b	LBB0_13
LBB0_7:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_8:
	mov	x8, x22
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x22, x0
	mov	x8, x0
	str	x8, [sp]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x22, x0
Lloh46:
	adrp	x1, l_.str.4@PAGE
Lloh47:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_dev_err
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_14:
Lloh48:
	adrp	x1, l_.str.5@PAGE
Lloh49:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_15:
	mov	x22, x0
	str	x22, [sp]
Lloh53:
	adrp	x1, l_.str.6@PAGE
Lloh54:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #8]
	bl	_free_netdev
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_16:
	mov	x0, x19
	bl	_ssip_free_cmds
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_ssi_protocol_probe.ifname:             ; @ssi_protocol_probe.ifname
	.asciz	"phonet%d"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ssip_rx_wd,4,2                 ; @ssip_rx_wd
	.comm	_TIMER_DEFERRABLE,4,2           ; @TIMER_DEFERRABLE
	.comm	_ssip_tx_wd,4,2                 ; @ssip_tx_wd
	.comm	_ssip_keep_alive,4,2            ; @ssip_keep_alive
	.comm	_ssip_xmit_work,4,2             ; @ssip_xmit_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mcsaab-control"

l_.str.1:                               ; @.str.1
	.asciz	"Could not get cmd channel (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"mcsaab-data"

l_.str.3:                               ; @.str.3
	.asciz	"Could not get data channel (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"No memory for commands\n"

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_ssip_pn_setup,4,2              ; @ssip_pn_setup
l_.str.5:                               ; @.str.5
	.asciz	"No memory for netdev\n"

	.comm	_PHONET_MIN_MTU,4,2             ; @PHONET_MIN_MTU
	.comm	_SSIP_MAX_MTU,4,2               ; @SSIP_MAX_MTU
l_.str.6:                               ; @.str.6
	.asciz	"Register netdev failed (%d)\n"

	.comm	_ssip_list,4,2                  ; @ssip_list
l_.str.7:                               ; @.str.7
	.asciz	"channel configuration: cmd=%d, data=%d\n"

	.no_dead_strip	_ssi_protocol_probe
.subsections_via_symbols
