	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detach_hdlc_protocol           ## -- Begin function detach_hdlc_protocol
	.p2align	4, 0x90
_detach_hdlc_protocol:                  ## @detach_hdlc_protocol
	.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	%rdi, %r14
	callq	_dev_to_hdlc
	movq	%rax, %r15
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.1:
	movq	_NETDEV_PRE_TYPE_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_call_netdevice_notifiers
	movl	%eax, %edi
	callq	_notifier_to_errno
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_7
LBB0_3:
	movq	8(%r15), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	*%rcx
	movq	8(%r15), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	_module_put
	movq	$0, 8(%r15)
LBB0_6:
	movq	(%r15), %rdi
	callq	_kfree
	movq	$0, (%r15)
	movq	%r14, %rdi
	callq	_hdlc_setup_dev
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_PRE_TYPE_CHANGE,4,2     ## @NETDEV_PRE_TYPE_CHANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Refused to change device type\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detach_hdlc_protocol           ; -- Begin function detach_hdlc_protocol
	.p2align	2
_detach_hdlc_protocol:                  ; @detach_hdlc_protocol
	.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	x19, x0
	bl	_dev_to_hdlc
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _NETDEV_PRE_TYPE_CHANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_PRE_TYPE_CHANGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_call_netdevice_notifiers
	bl	_notifier_to_errno
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_7
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x9
	ldr	x8, [x20, #8]
LBB0_5:
	ldr	w0, [x8]
	bl	_module_put
	str	xzr, [x20, #8]
LBB0_6:
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
	mov	x0, x19
	bl	_hdlc_setup_dev
	mov	w21, #0
LBB0_7:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_PRE_TYPE_CHANGE,4,2     ; @NETDEV_PRE_TYPE_CHANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Refused to change device type\n"

.subsections_via_symbols
