	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hangup
_hangup:                                ## @hangup
	.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, %r14
	movl	%edi, %ebx
	callq	_IS_VALID_CARD
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_CEPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ceReqTypePhy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ceReqClass1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ceReqPhyDisconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leal	1(%r14), %eax
	movzbl	%al, %r9d
	movl	%ebx, %edi
	pushq	$0
	pushq	$0
	callq	_sendmessage
	addq	$16, %rsp
	movl	%eax, %r15d
	movq	_sc_adapter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	incq	%r14
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	%r15d, %eax
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid param: %d is not a valid card id\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CEPID,4,2                      ## @CEPID
	.comm	_ceReqTypePhy,4,2               ## @ceReqTypePhy
	.comm	_ceReqClass1,4,2                ## @ceReqClass1
	.comm	_ceReqPhyDisconnect,4,2         ## @ceReqPhyDisconnect
L_.str.1:                               ## @.str.1
	.asciz	"%s: Sent HANGUP message to channel %lu\n"

	.comm	_sc_adapter,8,3                 ## @sc_adapter
	.no_dead_strip	_hangup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hangup
_hangup:                                ; @hangup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_IS_VALID_CARD
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CEPID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEPID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ceReqTypePhy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ceReqTypePhy@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ceReqClass1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ceReqClass1@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	ldr	w3, [x9]
Lloh9:
	adrp	x8, _ceReqPhyDisconnect@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ceReqPhyDisconnect@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	add	w8, w20, #1
	and	w5, w8, #0xff
	mov	x0, x19
	mov	w6, #0
	mov	x7, #0
	bl	_sendmessage
	mov	x21, x0
Lloh12:
	adrp	x8, _sc_adapter@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sc_adapter@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8, w19, sxtw #3]
	ldr	w1, [x8]
	add	x8, x20, #1
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	x0, x21
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid param: %d is not a valid card id\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CEPID,4,2                      ; @CEPID
	.comm	_ceReqTypePhy,4,2               ; @ceReqTypePhy
	.comm	_ceReqClass1,4,2                ; @ceReqClass1
	.comm	_ceReqPhyDisconnect,4,2         ; @ceReqPhyDisconnect
l_.str.1:                               ; @.str.1
	.asciz	"%s: Sent HANGUP message to channel %lu\n"

	.comm	_sc_adapter,8,3                 ; @sc_adapter
	.no_dead_strip	_hangup
.subsections_via_symbols
