	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_set_scan_mode   ## -- Begin function cxd2880_tnrdmd_set_scan_mode
	.p2align	4, 0x90
_cxd2880_tnrdmd_set_scan_mode:          ## @cxd2880_tnrdmd_set_scan_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	_CXD2880_TNRDMD_STATE_SLEEP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rcx
	cmpq	%rax, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r8, %rcx
	jne	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, 24(%rdi)
	cmpq	%rsi, 8(%rdi)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_STATE_SLEEP,8,3 ## @CXD2880_TNRDMD_STATE_SLEEP
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ## @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ## @CXD2880_TNRDMD_DIVERMODE_MAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_set_scan_mode   ; -- Begin function cxd2880_tnrdmd_set_scan_mode
	.p2align	2
_cxd2880_tnrdmd_set_scan_mode:          ; @cxd2880_tnrdmd_set_scan_mode
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x0]
	cmp	x11, x8
	ccmp	x11, x9, #4, ne
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w2, [x0, #24]
	ldr	x11, [x0, #8]
	cmp	x11, x10
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x0, #16]
	cbnz	x0, LBB0_2
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_STATE_SLEEP,8,3 ; @CXD2880_TNRDMD_STATE_SLEEP
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ; @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ; @CXD2880_TNRDMD_DIVERMODE_MAIN
.subsections_via_symbols
