	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hackrf_s_fmt_sdr
_hackrf_s_fmt_sdr:                      ## @hackrf_s_fmt_sdr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_video_devdata
	movq	%rax, %rbx
	movl	20(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leaq	(%r15,%rdx,4), %rdi
	addq	$12, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movl	12(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_NUM_FORMATS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.4:
	movq	(%r14), %rdx
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rax,%rsi), %rdx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_3:
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	movq	(%rax), %rcx
	movq	%rcx, (%r15)
	movl	8(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%rcx, (%r14)
	jmp	LBB0_9
LBB0_6:
	movq	%rdx, (%r15)
	movl	8(%rax,%rsi), %eax
	movl	%eax, 8(%r15)
LBB0_9:
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pixelformat fourcc %4.4s\n"

	.comm	_VFL_DIR_RX,8,3                 ## @VFL_DIR_RX
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NUM_FORMATS,4,2                ## @NUM_FORMATS
	.comm	_formats,8,3                    ## @formats
	.no_dead_strip	_hackrf_s_fmt_sdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hackrf_s_fmt_sdr
_hackrf_s_fmt_sdr:                      ; @hackrf_s_fmt_sdr
	.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	x19, x2
	mov	x21, x0
	bl	_video_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_video_devdata
	mov	x21, x0
	ldr	w0, [x20, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
Lloh2:
	adrp	x8, _VFL_DIR_RX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VFL_DIR_RX@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh4:
	ldr	x8, [x8]
	add	x10, x20, #16
	add	x11, x20, #12
	cmp	x9, x8
	csel	x0, x10, x11, eq
	bl	_vb2_is_busy
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	ldr	w0, [x19, #12]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh8:
	adrp	x8, _NUM_FORMATS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NUM_FORMATS@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x8]
	cmp	w11, #0
	b.le	LBB0_6
; %bb.3:
	mov	x9, #0
	ldr	x10, [x19]
Lloh11:
	adrp	x8, _formats@GOTPAGE
Lloh12:
	ldr	x8, [x8, _formats@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	lsl	x11, x11, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8, x9]
	cmp	x10, x12
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	cmp	x11, x9
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _formats@GOTPAGE
Lloh15:
	ldr	x8, [x8, _formats@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
LBB0_7:
	mov	w0, #0
	ldr	x9, [x8]
	str	x9, [x20]
	ldr	w8, [x8, #8]
	str	w8, [x20, #8]
	str	x9, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
	str	x10, [x20]
	add	x8, x8, x9
	ldr	w8, [x8, #8]
	str	w8, [x20, #8]
LBB0_9:
	str	w8, [x19, #8]
LBB0_10:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pixelformat fourcc %4.4s\n"

	.comm	_VFL_DIR_RX,8,3                 ; @VFL_DIR_RX
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NUM_FORMATS,4,2                ; @NUM_FORMATS
	.comm	_formats,8,3                    ; @formats
	.no_dead_strip	_hackrf_s_fmt_sdr
.subsections_via_symbols
