	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse8_send_and_wait_once
_pulse8_send_and_wait_once:             ## @pulse8_send_and_wait_once
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	20(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_init_completion
	movl	24(%r13), %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_pulse8_send
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movq	%r15, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%r13), %rax
	movl	(%rax), %edx
	andl	$63, %edx
	movq	_MSGCODE_COMMAND_REJECTED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_8
## %bb.4:
	movq	(%r12), %rax
	movq	_MSGCODE_SET_CONTROLLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.5:
	movq	_MSGCODE_SET_AUTO_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	_MSGCODE_GET_BUILDDATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_8:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_13
## %bb.9:
	cmpq	%r14, %rdx
	jne	LBB0_11
## %bb.10:
	cmpq	%r15, 8(%r13)
	jg	LBB0_13
LBB0_11:
	movl	16(%r13), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_info
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_2:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_MSGCODE_COMMAND_REJECTED,4,2   ## @MSGCODE_COMMAND_REJECTED
	.comm	_MSGCODE_SET_CONTROLLED,8,3     ## @MSGCODE_SET_CONTROLLED
	.comm	_MSGCODE_SET_AUTO_ENABLED,8,3   ## @MSGCODE_SET_AUTO_ENABLED
	.comm	_MSGCODE_GET_BUILDDATE,8,3      ## @MSGCODE_GET_BUILDDATE
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transmit: failed %02x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pulse8_send_and_wait_once
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse8_send_and_wait_once
_pulse8_send_and_wait_once:             ; @pulse8_send_and_wait_once
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x21, x3
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
	add	x23, x0, #20
	mov	x0, x23
	bl	_init_completion
	ldr	w0, [x20, #24]
	mov	x1, x22
	mov	x2, x24
	bl	_pulse8_send
	cbnz	w0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x20]
	ldr	w8, [x8]
	and	x2, x8, #0x3f
Lloh3:
	adrp	x8, _MSGCODE_COMMAND_REJECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSGCODE_COMMAND_REJECTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _MSGCODE_SET_CONTROLLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSGCODE_SET_CONTROLLED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _MSGCODE_SET_AUTO_ENABLED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MSGCODE_SET_AUTO_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _MSGCODE_GET_BUILDDATE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MSGCODE_GET_BUILDDATE@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_10
LBB0_4:
	cbz	x21, LBB0_7
; %bb.5:
	cmp	x2, x21
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.le	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w0, [x20, #16]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_info
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_MSGCODE_COMMAND_REJECTED,4,2   ; @MSGCODE_COMMAND_REJECTED
	.comm	_MSGCODE_SET_CONTROLLED,8,3     ; @MSGCODE_SET_CONTROLLED
	.comm	_MSGCODE_SET_AUTO_ENABLED,8,3   ; @MSGCODE_SET_AUTO_ENABLED
	.comm	_MSGCODE_GET_BUILDDATE,8,3      ; @MSGCODE_GET_BUILDDATE
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transmit: failed %02x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pulse8_send_and_wait_once
.subsections_via_symbols
