	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smscore_sendrequest_and_wait
_smscore_sendrequest_and_wait:          ## @smscore_sendrequest_and_wait
	.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
	movq	%rcx, %r14
	movq	%rdi, %rax
	movl	8(%rdi), %edi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_SMS_PROTOCOL_MAX_RAOUNDTRIP_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movq	_ETIME@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_sms_info
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendrequest returned error %d"

	.comm	_SMS_PROTOCOL_MAX_RAOUNDTRIP_MS,4,2 ## @SMS_PROTOCOL_MAX_RAOUNDTRIP_MS
	.comm	_ETIME,4,2                      ## @ETIME
	.no_dead_strip	_smscore_sendrequest_and_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smscore_sendrequest_and_wait
_smscore_sendrequest_and_wait:          ; @smscore_sendrequest_and_wait
	.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	x19, x3
	ldr	x8, [x0]
	ldr	w0, [x0, #8]
	blr	x8
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SMS_PROTOCOL_MAX_RAOUNDTRIP_MS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMS_PROTOCOL_MAX_RAOUNDTRIP_MS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_wait_for_completion_timeout
Lloh3:
	adrp	x8, _ETIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w20, wzr, w8, ne
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_sms_info
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendrequest returned error %d"

	.comm	_SMS_PROTOCOL_MAX_RAOUNDTRIP_MS,4,2 ; @SMS_PROTOCOL_MAX_RAOUNDTRIP_MS
	.comm	_ETIME,4,2                      ; @ETIME
	.no_dead_strip	_smscore_sendrequest_and_wait
.subsections_via_symbols
