	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_connect
_bcm_connect:                           ## @bcm_connect
	.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	%rsi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_bcm_sk
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_EISCONN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %r15
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.4:
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_dev_get_by_index
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rax), %rcx
	movq	_ARPHRD_CAN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.8:
	movq	8(%rax), %rcx
	movq	%rcx, 16(%r15)
	movq	%rax, %rdi
	callq	_dev_put
	jmp	LBB0_10
LBB0_9:
	movq	$0, 16(%r15)
LBB0_10:
	movl	$1, (%r15)
	movq	_proc_dir@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.11:
	movl	4(%r15), %r12d
	movq	%r14, %rdi
	callq	_sock_i_ino
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_sprintf
	movl	4(%r15), %edi
	movq	(%r13), %rdx
	movq	_bcm_proc_fops@GOTPCREL(%rip), %rcx
	movl	$420, %esi                      ## imm = 0x1A4
	movq	%r14, %r8
	callq	_proc_create_data
	movl	%eax, 8(%r15)
	jmp	LBB0_12
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%rax, %rdi
	callq	_dev_put
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_init_net,4,2                   ## @init_net
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ARPHRD_CAN,8,3                 ## @ARPHRD_CAN
	.comm	_proc_dir,8,3                   ## @proc_dir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu"

	.comm	_bcm_proc_fops,4,2              ## @bcm_proc_fops
	.no_dead_strip	_bcm_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_connect
_bcm_connect:                           ; @bcm_connect
	.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	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_bcm_sk
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EISCONN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x20, x0
	ldr	x1, [x21]
	cbz	x1, LBB0_6
; %bb.3:
Lloh2:
	adrp	x0, _init_net@GOTPAGE
Lloh3:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_dev_get_by_index
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x8, [x0]
Lloh4:
	adrp	x9, _ARPHRD_CAN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ARPHRD_CAN@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x0, #8]
	str	x8, [x20, #16]
	bl	_dev_put
	b	LBB0_7
LBB0_6:
	str	xzr, [x20, #16]
LBB0_7:
	mov	w8, #1
	str	w8, [x20]
Lloh7:
	adrp	x22, _proc_dir@GOTPAGE
Lloh8:
	ldr	x22, [x22, _proc_dir@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_13
; %bb.8:
	ldr	w21, [x20, #4]
	mov	x0, x19
	bl	_sock_i_ino
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_sprintf
	ldr	w0, [x20, #4]
	ldr	x2, [x22]
Lloh11:
	adrp	x3, _bcm_proc_fops@GOTPAGE
Lloh12:
	ldr	x3, [x3, _bcm_proc_fops@GOTPAGEOFF]
	mov	w1, #420
	mov	x4, x19
	bl	_proc_create_data
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20, #8]
	b	LBB0_12
LBB0_9:
	bl	_dev_put
LBB0_10:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
LBB0_13:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_init_net,4,2                   ; @init_net
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ARPHRD_CAN,8,3                 ; @ARPHRD_CAN
	.comm	_proc_dir,8,3                   ; @proc_dir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu"

	.comm	_bcm_proc_fops,4,2              ; @bcm_proc_fops
	.no_dead_strip	_bcm_connect
.subsections_via_symbols
