	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bd_sync                        ## -- Begin function bd_sync
	.p2align	4, 0x90
_bd_sync:                               ## @bd_sync
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	_OBJ_TYPE_MD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_obj_lookup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	-72(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_PROTO_IOC_BUSDMA_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	%r12d, -56(%rbp)
	movq	%r15, -64(%rbp)
	movq	%r14, -72(%rbp)
	movl	(%rbx), %edi
	movq	_PROTO_IOC_BUSDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_3
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_TYPE_MD,4,2                ## @OBJ_TYPE_MD
	.comm	_errno,4,2                      ## @errno
	.comm	_PROTO_IOC_BUSDMA_SYNC,4,2      ## @PROTO_IOC_BUSDMA_SYNC
	.comm	_PROTO_IOC_BUSDMA,4,2           ## @PROTO_IOC_BUSDMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bd_sync                        ; -- Begin function bd_sync
	.p2align	2
_bd_sync:                               ; @bd_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _OBJ_TYPE_MD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJ_TYPE_MD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_obj_lookup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh3:
	adrp	x8, _PROTO_IOC_BUSDMA_SYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROTO_IOC_BUSDMA_SYNC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	ldr	w8, [x22, #4]
	str	w8, [sp, #24]
	str	w21, [sp, #16]
	stp	x19, x20, [sp]
	ldr	w0, [x22]
Lloh6:
	adrp	x8, _PROTO_IOC_BUSDMA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROTO_IOC_BUSDMA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, #1
	csel	w0, w8, wzr, eq
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_TYPE_MD,4,2                ; @OBJ_TYPE_MD
	.comm	_errno,4,2                      ; @errno
	.comm	_PROTO_IOC_BUSDMA_SYNC,4,2      ; @PROTO_IOC_BUSDMA_SYNC
	.comm	_PROTO_IOC_BUSDMA,4,2           ; @PROTO_IOC_BUSDMA
.subsections_via_symbols
