	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_greybus_message_sent           ## -- Begin function greybus_message_sent
	.p2align	4, 0x90
_greybus_message_sent:                  ## @greybus_message_sent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	(%rsi), %rbx
	cmpq	%rsi, 8(%rbx)
	je	LBB0_1
## %bb.4:
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_gb_operation_is_unidirectional
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_gb_operation_result_set
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_gb_operation_completion_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_1:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	16(%rbx), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %r8d
	callq	_dev_err
LBB0_3:
	movq	%rbx, %rdi
	callq	_gb_operation_put_active
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gb_operation_put               ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: error sending response 0x%02x: %d\n"

	.comm	_gb_operation_completion_wq,4,2 ## @gb_operation_completion_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_greybus_message_sent           ; -- Begin function greybus_message_sent
	.p2align	2
_greybus_message_sent:                  ; @greybus_message_sent
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	ldr	x19, [x1]
	ldr	x8, [x19, #8]
	cmp	x8, x1
	b.eq	LBB0_5
; %bb.1:
	cbnz	w20, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_gb_operation_is_unidirectional
	cbz	x0, LBB0_8
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_gb_operation_result_set
	cbz	x0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _gb_operation_completion_wq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gb_operation_completion_wq@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_queue_work
LBB0_5:
	cbz	w20, LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x19
	bl	_gb_operation_put_active
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gb_operation_put
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: error sending response 0x%02x: %d\n"

	.comm	_gb_operation_completion_wq,4,2 ; @gb_operation_completion_wq
.subsections_via_symbols
