	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cport_in_callback
_cport_in_callback:                     ## @cport_in_callback
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	24(%rdi), %r15
	callq	_check_urb_status
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.2:
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.3:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_14
## %bb.4:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_14
## %bb.5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	cmpl	$3, (%rbx)
	ja	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_9:
	movq	8(%rbx), %rdi
	callq	_gb_message_cport_unpack
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_cport_id_valid
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_greybus_data_rcvd
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"urb cport in error %d (dropped)\n"

L_.str.1:                               ## @.str.1
	.asciz	"short message received\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid cport id %u received\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.3:                               ## @.str.3
	.asciz	"failed to resubmit in-urb: %d\n"

	.no_dead_strip	_cport_in_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cport_in_callback
_cport_in_callback:                     ; @cport_in_callback
	.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, x0
	ldp	x19, x21, [x0, #16]
	bl	_check_urb_status
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.2:
Lloh3:
	adrp	x8, _EPROTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.3:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.4:
Lloh9:
	adrp	x8, _ESHUTDOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ESHUTDOWN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.5:
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_6:
	ldr	w8, [x20]
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.7:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
	ldr	x0, [x20, #8]
	bl	_gb_message_cport_unpack
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_cport_id_valid
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	mov	x0, x21
	mov	x1, x22
	bl	_greybus_data_rcvd
	b	LBB0_12
LBB0_10:
	str	x22, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
Lloh18:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_usb_submit_urb
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_15
; %bb.13:
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
LBB0_15:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"urb cport in error %d (dropped)\n"

l_.str.1:                               ; @.str.1
	.asciz	"short message received\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid cport id %u received\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.3:                               ; @.str.3
	.asciz	"failed to resubmit in-urb: %d\n"

	.no_dead_strip	_cport_in_callback
.subsections_via_symbols
