	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdla_dlci_conf
_sdla_dlci_conf:                        ## @sdla_dlci_conf
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_CONFIG_DLCI_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.6:
	movq	8(%r14), %rcx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rcx,%r12,8)
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	cmpq	%r12, %rax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_1:
	xorl	%r12d, %r12d
LBB0_2:
	cmpl	%eax, %r12d
	jne	LBB0_3
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_3:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SDLA_RET_OK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %ebx
	movw	$4, -42(%rbp)
	movq	%r13, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.5:
	movq	_SDLA_READ_DLCI_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, %edx
	negl	%edx
	cmovsl	%eax, %edx
	leaq	-42(%rbp), %rax
	movq	%rax, 8(%rsp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	jmp	LBB0_11
LBB0_10:
	movq	_SDLA_SET_DLCI_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, %edx
	negl	%edx
	cmovsl	%eax, %edx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	$-4, %r9d
LBB0_11:
	callq	_sdla_cmd
	movl	%eax, %ebx
LBB0_12:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	_SDLA_RET_OK@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %bx
	cmovel	%edx, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_DLCI_MAX,4,2            ## @CONFIG_DLCI_MAX
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SDLA_RET_OK,2,1                ## @SDLA_RET_OK
	.comm	_SDLA_READ_DLCI_CONFIGURATION,4,2 ## @SDLA_READ_DLCI_CONFIGURATION
	.comm	_SDLA_SET_DLCI_CONFIGURATION,4,2 ## @SDLA_SET_DLCI_CONFIGURATION
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_sdla_dlci_conf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdla_dlci_conf
_sdla_dlci_conf:                        ; @sdla_dlci_conf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _CONFIG_DLCI_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_DLCI_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x25, #0
	ldr	x9, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x25, lsl #3]
	cmp	x10, x22
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	cmp	x8, x25
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w25, #0
LBB0_5:
	cmp	w25, w8
	b.ne	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_7:
	mov	x0, x22
	bl	_netdev_priv
	mov	x22, x0
Lloh6:
	adrp	x24, _SDLA_RET_OK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SDLA_RET_OK@GOTPAGEOFF]
	ldrh	w23, [x24]
	mov	w8, #4
	strh	w8, [sp, #14]
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_12
; %bb.8:
	cbz	w21, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _SDLA_READ_DLCI_CONFIGURATION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDLA_READ_DLCI_CONFIGURATION@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w8, [x8, w25, uxtw #2]
	cmp	w8, #0
	cneg	w2, w8, mi
	add	x7, sp, #14
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, x22
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _SDLA_SET_DLCI_CONFIGURATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDLA_SET_DLCI_CONFIGURATION@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w8, [x8, w25, uxtw #2]
	cmp	w8, #0
	cneg	w2, w8, mi
	mov	x0, x19
	mov	w3, #0
	mov	x4, x22
	mov	w5, #-4
	mov	x6, #0
	mov	x7, #0
LBB0_11:
	bl	_sdla_cmd
	mov	x23, x0
LBB0_12:
	ldrh	w8, [x24]
Lloh14:
	adrp	x9, _EIO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w23, uxth
	csneg	w0, wzr, w9, eq
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_DLCI_MAX,4,2            ; @CONFIG_DLCI_MAX
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SDLA_RET_OK,2,1                ; @SDLA_RET_OK
	.comm	_SDLA_READ_DLCI_CONFIGURATION,4,2 ; @SDLA_READ_DLCI_CONFIGURATION
	.comm	_SDLA_SET_DLCI_CONFIGURATION,4,2 ; @SDLA_SET_DLCI_CONFIGURATION
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_sdla_dlci_conf
.subsections_via_symbols
