	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raw_bind
_raw_bind:                              ## @raw_bind
	.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
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_raw_sk
	cmpl	$3, %ebx
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_2:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_lock_sock
	cmpl	$0, (%r14)
	movl	(%r12), %esi
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	4(%r14), %esi
	je	LBB0_7
LBB0_4:
	testl	%esi, %esi
	je	LBB0_11
## %bb.5:
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_dev_get_by_index
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_ARPHRD_CAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	andl	8(%r12), %eax
	sete	%r13b
	movl	12(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_raw_enable_allfilters
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_dev_put
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_20
	jmp	LBB0_13
LBB0_11:
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_raw_enable_allfilters
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jne	LBB0_20
LBB0_13:
	cmpl	$0, (%r14)
	je	LBB0_19
## %bb.14:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.15:
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_dev_get_by_index
	movq	%rax, %r12
	testq	%rax, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_19
## %bb.16:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_raw_disable_allfilters
	movq	%r12, %rdi
	callq	_dev_put
	jmp	LBB0_18
LBB0_9:
	movq	%r12, %rdi
	callq	_dev_put
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_release_sock
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_raw_disable_allfilters
LBB0_18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_19:
	movl	%eax, 4(%r14)
	movl	$1, (%r14)
LBB0_20:
	movq	%r15, %rdi
	callq	_release_sock
	testl	%r13d, %r13d
	je	LBB0_23
## %bb.21:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	callq	*(%r15)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_init_net,4,2                   ## @init_net
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ARPHRD_CAN,8,3                 ## @ARPHRD_CAN
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
	.no_dead_strip	_raw_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raw_bind
_raw_bind:                              ; @raw_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_raw_sk
	cmp	w22, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_2:
	mov	x20, x0
	mov	x0, x19
	bl	_lock_sock
	ldr	w8, [x20]
	ldr	w1, [x21]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x20, #4]
	cmp	w1, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w21, #0
	b	LBB0_16
LBB0_5:
	cbz	w1, LBB0_9
; %bb.6:
Lloh3:
	adrp	x0, _init_net@GOTPAGE
Lloh4:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_dev_get_by_index
	cbz	x0, LBB0_15
; %bb.7:
	mov	x22, x0
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _ARPHRD_CAN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ARPHRD_CAN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.8:
Lloh8:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w9, w24, [x22, #8]
	tst	w8, w9
	cset	w23, eq
	mov	x0, x22
	mov	x1, x19
	bl	_raw_enable_allfilters
	mov	x21, x0
	mov	x0, x22
	bl	_dev_put
	cbnz	w21, LBB0_20
	b	LBB0_10
LBB0_9:
	mov	x0, #0
	mov	x1, x19
	bl	_raw_enable_allfilters
	mov	x21, x0
	mov	w23, #0
	mov	w24, #0
	cbnz	w21, LBB0_20
LBB0_10:
	ldr	w8, [x20]
	cbz	w8, LBB0_19
; %bb.11:
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_18
; %bb.12:
Lloh11:
	adrp	x0, _init_net@GOTPAGE
Lloh12:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_dev_get_by_index
	cbz	x0, LBB0_19
; %bb.13:
	mov	x22, x0
	mov	x1, x19
	bl	_raw_disable_allfilters
	mov	x0, x22
	bl	_dev_put
	b	LBB0_19
LBB0_14:
	mov	x0, x22
	bl	_dev_put
LBB0_15:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	mov	x0, x19
	bl	_release_sock
LBB0_17:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x0, #0
	mov	x1, x19
	bl	_raw_disable_allfilters
LBB0_19:
	mov	w8, #1
	stp	w8, w24, [x20]
LBB0_20:
	mov	x0, x19
	bl	_release_sock
	cbz	w23, LBB0_17
; %bb.21:
Lloh16:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh19:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	w0, LBB0_17
; %bb.22:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_init_net,4,2                   ; @init_net
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ARPHRD_CAN,8,3                 ; @ARPHRD_CAN
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
	.no_dead_strip	_raw_bind
.subsections_via_symbols
