	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdla_assoc
_sdla_assoc:                            ## @sdla_assoc
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_ARPHRD_DLCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_CONFIG_DLCI_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.9:
	movq	16(%r15), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rcx,8)
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r15), %rsi
	movzwl	(%rsi,%rcx,2), %esi
	movl	%esi, %edi
	negw	%di
	cmovsw	%si, %di
	movzwl	%di, %esi
	movq	8(%rbx), %rdi
	movswl	(%rdi), %edi
	cmpl	%edi, %esi
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	xorl	%ecx, %ecx
LBB0_5:
	cmpl	%eax, %ecx
	jne	LBB0_6
LBB0_14:
	movq	_EMLINK@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	16(%r15), %rax
	movl	%ecx, %ecx
	movq	%rbx, (%rax,%rcx,8)
	movq	8(%rbx), %rax
	xorl	%r12d, %r12d
	movzwl	(%rax), %eax
	xorl	%edx, %edx
	subw	%ax, %dx
	movq	(%r15), %rax
	movw	%dx, (%rax,%rcx,2)
	movl	16(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	8(%r15), %rax
	movq	_FRAD_STATION_CPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.8:
	movq	%r14, %rdi
	callq	_sdla_reconfig
	jmp	LBB0_16
LBB0_12:
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_SDLA_ADD_DLCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %r8
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$2, %r9d
	callq	_sdla_cmd
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ARPHRD_DLCI,8,3                ## @ARPHRD_DLCI
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CONFIG_DLCI_MAX,4,2            ## @CONFIG_DLCI_MAX
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_EMLINK,4,2                     ## @EMLINK
	.comm	_FRAD_STATION_CPE,8,3           ## @FRAD_STATION_CPE
	.comm	_SDLA_ADD_DLCI,4,2              ## @SDLA_ADD_DLCI
	.no_dead_strip	_sdla_assoc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdla_assoc
_sdla_assoc:                            ; @sdla_assoc
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _ARPHRD_DLCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARPHRD_DLCI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh3:
	adrp	x8, _CONFIG_DLCI_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG_DLCI_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x8, #0
	ldr	x10, [x21, #16]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x8, lsl #3]
	cbz	x11, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x21]
	ldrsh	w11, [x11, x8, lsl #1]
	cmp	w11, #0
	cneg	w11, w11, mi
	ldr	x12, [x20, #8]
	ldrsh	w12, [x12]
	cmp	w12, w11, uxth
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_3
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	mov	w8, #0
LBB0_8:
	cmp	w8, w9
	b.ne	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _EMLINK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EMLINK@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	ldr	x9, [x21, #16]
	str	x20, [x9, w8, uxtw #3]
	ldr	x9, [x20, #8]
	ldrh	w9, [x9]
	neg	w9, w9
	ldr	x10, [x21]
	strh	w9, [x10, w8, uxtw #1]
	ldr	w8, [x19, #16]
	str	w8, [x20, #16]
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x8, [x21, #8]
Lloh10:
	adrp	x9, _FRAD_STATION_CPE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FRAD_STATION_CPE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.12:
	mov	x0, x19
	bl	_sdla_reconfig
	b	LBB0_17
LBB0_13:
Lloh13:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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_16:
Lloh15:
	adrp	x8, _SDLA_ADD_DLCI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDLA_ADD_DLCI@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x4, [x20, #8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w5, #2
	mov	x6, #0
	mov	x7, #0
	bl	_sdla_cmd
LBB0_17:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ARPHRD_DLCI,8,3                ; @ARPHRD_DLCI
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CONFIG_DLCI_MAX,4,2            ; @CONFIG_DLCI_MAX
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_EMLINK,4,2                     ; @EMLINK
	.comm	_FRAD_STATION_CPE,8,3           ; @FRAD_STATION_CPE
	.comm	_SDLA_ADD_DLCI,4,2              ; @SDLA_ADD_DLCI
	.no_dead_strip	_sdla_assoc
.subsections_via_symbols
