	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_set_pid_ftr     ## -- Begin function cxd2880_tnrdmd_set_pid_ftr
	.p2align	4, 0x90
_cxd2880_tnrdmd_set_pid_ftr:            ## @cxd2880_tnrdmd_set_pid_ftr
	.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_1
## %bb.3:
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_SUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.4:
	movq	8(%rdi), %rcx
	movq	_CXD2880_TNRDMD_STATE_SLEEP@GOTPCREL(%rip), %rax
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	cmpq	(%rax), %rcx
	je	LBB0_6
## %bb.5:
	cmpq	%r9, %rcx
	je	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_6:
	movq	24(%rdi), %r8
	movq	_CXD2880_TNRDMD_TSOUT_IF_TS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jne	LBB0_8
## %bb.7:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_8:
	xorl	%eax, %eax
	movl	$0, %r8d
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movl	(%rsi), %edx
	movl	%edx, 20(%rdi)
	movl	$1, %r8d
LBB0_10:
	movl	%r8d, 16(%rdi)
	cmpq	%r9, %rcx
	jne	LBB0_11
## %bb.12:
	popq	%rbp
	jmp	_pid_ftr_setting                ## TAILCALL
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ## @CXD2880_TNRDMD_DIVERMODE_SUB
	.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_TSOUT_IF_TS,8,3 ## @CXD2880_TNRDMD_TSOUT_IF_TS
	.comm	_ENOTTY,4,2                     ## @ENOTTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_set_pid_ftr     ; -- Begin function cxd2880_tnrdmd_set_pid_ftr
	.p2align	2
_cxd2880_tnrdmd_set_pid_ftr:            ; @cxd2880_tnrdmd_set_pid_ftr
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
Lloh6:
	adrp	x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	x10, [x0, #24]
Lloh9:
	adrp	x11, _CXD2880_TNRDMD_TSOUT_IF_TS@GOTPAGE
Lloh10:
	ldr	x11, [x11, _CXD2880_TNRDMD_TSOUT_IF_TS@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
	cbz	x1, LBB0_9
; %bb.8:
	ldr	w10, [x1]
	str	w10, [x0, #20]
	mov	w10, #1
	b	LBB0_10
LBB0_9:
	mov	w10, #0
LBB0_10:
	str	w10, [x0, #16]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	b	_pid_ftr_setting
LBB0_12:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ; @CXD2880_TNRDMD_DIVERMODE_SUB
	.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_TSOUT_IF_TS,8,3 ; @CXD2880_TNRDMD_TSOUT_IF_TS
	.comm	_ENOTTY,4,2                     ; @ENOTTY
.subsections_via_symbols
