	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x25_ioctl
_x25_ioctl:                             ## @x25_ioctl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_dev_to_hdlc
	movq	%rax, %r14
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.2:
	movq	%r15, %rdi
	callq	_dev_to_hdlc
	movq	8(%rax), %rax
	cmpq	_proto@GOTPCREL(%rip), %rax
	je	LBB0_3
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_3:
	movl	$128, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_8:
	movq	_ENCODING_NRZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PARITY_CRC16_PR1_CCITT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	*(%r14)
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	_proto@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_attach_hdlc_protocol
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	_ARPHRD_X25@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_NETDEV_POST_TYPE_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_call_netdevice_notifiers
	movq	%r15, %rdi
	callq	_netif_dormant_off
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_proto,4,2                      ## @proto
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENCODING_NRZ,4,2               ## @ENCODING_NRZ
	.comm	_PARITY_CRC16_PR1_CCITT,4,2     ## @PARITY_CRC16_PR1_CCITT
	.comm	_ARPHRD_X25,4,2                 ## @ARPHRD_X25
	.comm	_NETDEV_POST_TYPE_CHANGE,4,2    ## @NETDEV_POST_TYPE_CHANGE
	.no_dead_strip	_x25_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x25_ioctl
_x25_ioctl:                             ; @x25_ioctl
	.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	x20, x1
	mov	x19, x0
	bl	_dev_to_hdlc
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_dev_to_hdlc
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _proto@GOTPAGE
Lloh1:
	ldr	x9, [x9, _proto@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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_6:
	mov	x21, x0
Lloh4:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_10
; %bb.7:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
	mov	w0, #0
	mov	w8, #128
	str	w8, [x20]
	b	LBB0_5
LBB0_10:
Lloh12:
	adrp	x8, _EPERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_4
LBB0_11:
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _ENCODING_NRZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ENCODING_NRZ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
Lloh17:
	adrp	x9, _PARITY_CRC16_PR1_CCITT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PARITY_CRC16_PR1_CCITT@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x9]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_5
; %bb.12:
Lloh20:
	adrp	x1, _proto@GOTPAGE
Lloh21:
	ldr	x1, [x1, _proto@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	bl	_attach_hdlc_protocol
	cbnz	w0, LBB0_5
; %bb.13:
Lloh22:
	adrp	x8, _ARPHRD_X25@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARPHRD_X25@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh25:
	adrp	x8, _NETDEV_POST_TYPE_CHANGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NETDEV_POST_TYPE_CHANGE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_call_netdevice_notifiers
	mov	x0, x19
	bl	_netif_dormant_off
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_proto,4,2                      ; @proto
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENCODING_NRZ,4,2               ; @ENCODING_NRZ
	.comm	_PARITY_CRC16_PR1_CCITT,4,2     ; @PARITY_CRC16_PR1_CCITT
	.comm	_ARPHRD_X25,4,2                 ; @ARPHRD_X25
	.comm	_NETDEV_POST_TYPE_CHANGE,4,2    ; @NETDEV_POST_TYPE_CHANGE
	.no_dead_strip	_x25_ioctl
.subsections_via_symbols
