	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_transfer_complete
_bcm2835_transfer_complete:             ## @bcm2835_transfer_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$0, 32(%rbx)
	sete	%dil
	callq	_WARN_ON
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rax
	movq	$0, 24(%rbx)
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_bcm2835_send_command
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpl	$0, (%rbx)
	je	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, 16(%rbx)
	je	LBB0_3
LBB0_6:
	movq	%rbx, %rdi
	callq	_bcm2835_wait_transfer_complete
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcm2835_finish_request         ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcm2835_finish_command         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bcm2835_transfer_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_transfer_complete
_bcm2835_transfer_complete:             ; @bcm2835_transfer_complete
	.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, x0
	ldr	w8, [x0, #32]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19, #24]
	str	xzr, [x19, #24]
	ldr	x9, [x19, #8]
	ldr	x1, [x9]
	cbz	x1, LBB0_6
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_bcm2835_send_command
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_2
LBB0_6:
	mov	x0, x19
	bl	_bcm2835_wait_transfer_complete
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcm2835_finish_request
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcm2835_finish_command
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bcm2835_transfer_complete
.subsections_via_symbols
