	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbt2_set_profile
_dvbt2_set_profile:                     ## @dvbt2_set_profile
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.3:
	movslq	%ecx, %rcx
	leaq	l_switch.table.dvbt2_set_profile(%rip), %rdx
	movl	(%rdx,%rcx,4), %r14d
	cmpl	$133, %esi
	je	LBB0_8
## %bb.4:
	cmpl	$132, %esi
	je	LBB0_5
## %bb.6:
	cmpl	$131, %esi
	jne	LBB0_1
## %bb.7:
	movl	$5, %r15d
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_5:
	movl	$142, %r14d
	subl	%eax, %r14d
	movl	$1, %r15d
LBB0_9:
	movq	8(%rbx), %rdi
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	movl	$46, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	8(%rbx), %rdi
	movl	(%r12), %esi
	movl	$16, %edx
	movl	%r15d, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	8(%rbx), %rdi
	movl	(%r12), %esi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	movl	(%r12), %esi
	movl	$44, %edx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.no_dead_strip	_dvbt2_set_profile
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.dvbt2_set_profile
l_switch.table.dvbt2_set_profile:
	.long	46                              ## 0x2e
	.long	44                              ## 0x2c
	.long	39                              ## 0x27

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvbt2_set_profile
_dvbt2_set_profile:                     ; @dvbt2_set_profile
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_6
; %bb.2:
Lloh0:
	adrp	x10, l_switch.table.dvbt2_set_profile@PAGE
Lloh1:
	add	x10, x10, l_switch.table.dvbt2_set_profile@PAGEOFF
	ldr	w20, [x10, w9, sxtw #2]
	cmp	w1, #133
	b.eq	LBB0_8
; %bb.3:
	cmp	w1, #132
	b.eq	LBB0_9
; %bb.4:
	cmp	w1, #131
	b.ne	LBB0_6
; %bb.5:
	mov	w21, #5
	b	LBB0_10
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	mov	w21, #0
	b	LBB0_10
LBB0_9:
	mov	w9, #142
	sub	w20, w9, w8
	mov	w21, #1
LBB0_10:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
Lloh5:
	adrp	x22, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	mov	w3, #46
	blr	x8
	cbnz	w0, LBB0_7
; %bb.11:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	w1, [x22]
	mov	w2, #16
	mov	x3, x21
	blr	x8
	cbnz	w0, LBB0_7
; %bb.12:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	w1, [x22]
	mov	w2, #0
	mov	w3, #4
	blr	x8
	cbnz	w0, LBB0_7
; %bb.13:
	ldr	x0, [x19, #8]
	ldr	x4, [x0]
	ldr	w1, [x22]
	mov	w2, #44
	mov	x3, x20
	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
	br	x4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.no_dead_strip	_dvbt2_set_profile
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.dvbt2_set_profile
l_switch.table.dvbt2_set_profile:
	.long	46                              ; 0x2e
	.long	44                              ; 0x2c
	.long	39                              ; 0x27

.subsections_via_symbols
