	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl1x1sf_set_device_mode       ## -- Begin function mxl1x1sf_set_device_mode
	.p2align	4, 0x90
_mxl1x1sf_set_device_mode:              ## @mxl1x1sf_set_device_mode
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_MXL_SOC_MODE@GOTPCREL(%rip), %r12
	cmpl	%esi, (%r12)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_mxl_debug
	xorl	%edx, %edx
	cmpl	%r15d, (%r12)
	sete	%dl
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_mxl111sf_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	xorl	%ecx, %ecx
	cmpl	%r15d, (%r12)
	setne	%cl
	shll	$6, %ecx
	movq	%r14, %rdi
	movl	$125, %esi
	movl	$64, %edx
	callq	_mxl111sf_write_reg_mask
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	%r15d, (%r14)
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%s)"

	.comm	_MXL_SOC_MODE,4,2               ## @MXL_SOC_MODE
L_.str.1:                               ## @.str.1
	.asciz	"MXL_SOC_MODE"

L_.str.2:                               ## @.str.2
	.asciz	"MXL_TUNER_MODE"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mxl1x1sf_set_device_mode       ; -- Begin function mxl1x1sf_set_device_mode
	.p2align	2
_mxl1x1sf_set_device_mode:              ; @mxl1x1sf_set_device_mode
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MXL_SOC_MODE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MXL_SOC_MODE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w1
	csel	x1, x10, x9, eq
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_debug
	ldr	w8, [x22]
	cmp	w8, w19
	cset	w2, eq
	mov	x0, x20
	mov	w1, #3
	bl	_mxl111sf_write_reg
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, w19
	cset	w8, ne
	lsl	w3, w8, #6
	mov	x0, x20
	mov	w1, #125
	mov	w2, #64
	bl	_mxl111sf_write_reg_mask
	mov	x21, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_3
; %bb.2:
	str	w19, [x20]
LBB0_3:
	mov	x0, x21
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%s)"

	.comm	_MXL_SOC_MODE,4,2               ; @MXL_SOC_MODE
l_.str.1:                               ; @.str.1
	.asciz	"MXL_SOC_MODE"

l_.str.2:                               ; @.str.2
	.asciz	"MXL_TUNER_MODE"

.subsections_via_symbols
