	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tube_setup_bg_write            ## -- Begin function tube_setup_bg_write
	.p2align	4, 0x90
_tube_setup_bg_write:                   ## @tube_setup_bg_write
	.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	%rsi, %rax
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movq	_tube_handle_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %r14d
	movq	%rax, %rdi
	movl	$1, %edx
	movq	%rbx, %r8
	callq	_comm_point_create_raw
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	movl	%ebx, (%r14)
	xorl	%r14d, %r14d
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tube_handle_write,4,2          ## @tube_handle_write
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tube_setup_bg_w: commpoint creation failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tube_setup_bg_write            ; -- Begin function tube_setup_bg_write
	.p2align	2
_tube_setup_bg_write:                   ; @tube_setup_bg_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, x1
	mov	x20, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x9, _tube_handle_write@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tube_handle_write@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	w19, #1
	mov	x0, x8
	mov	w2, #1
	mov	x4, x20
	bl	_comm_point_create_raw
	str	w0, [x20, #4]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _errno@GOTPAGE
Lloh4:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	w19, #0
	str	w21, [x20]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_tube_handle_write,4,2          ; @tube_handle_write
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tube_setup_bg_w: commpoint creation failed"

.subsections_via_symbols
