	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_set_ts_pin_high_low ## -- Begin function cxd2880_tnrdmd_set_ts_pin_high_low
	.p2align	4, 0x90
_cxd2880_tnrdmd_set_ts_pin_high_low:    ## @cxd2880_tnrdmd_set_ts_pin_high_low
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_SUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.4:
	movq	8(%rbx), %rax
	movq	_CXD2880_TNRDMD_STATE_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movq	24(%rbx), %rax
	movq	_CXD2880_TNRDMD_TSOUT_IF_TS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	16(%rbx), %rdi
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	16(%rbx), %r12
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.9:
	movl	(%r13), %esi
	andl	$31, %r14d
	leal	128(%r14), %ecx
	movq	%r12, %rdi
	movl	$80, %edx
	callq	*(%r12)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	movl	(%r13), %esi
	movl	$82, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_11:
	movl	(%r13), %r14d
	movq	_set_ts_pin_seq@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_load_cfg_mem                   ## TAILCALL
	.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_TSOUT_IF_TS,8,3 ## @CXD2880_TNRDMD_TSOUT_IF_TS
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_CXD2880_IO_TGT_SYS,4,2         ## @CXD2880_IO_TGT_SYS
	.comm	_set_ts_pin_seq,4,2             ## @set_ts_pin_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_set_ts_pin_high_low ; -- Begin function cxd2880_tnrdmd_set_ts_pin_high_low
	.p2align	2
_cxd2880_tnrdmd_set_ts_pin_high_low:    ; @cxd2880_tnrdmd_set_ts_pin_high_low
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	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_8
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x9, _CXD2880_TNRDMD_TSOUT_IF_TS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CXD2880_TNRDMD_TSOUT_IF_TS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.4:
	mov	x20, x2
	mov	x21, x1
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
Lloh9:
	adrp	x23, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #0
	blr	x8
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	x22, [x19, #16]
	cbz	w21, LBB0_12
; %bb.6:
	ldr	x8, [x22]
	ldr	w1, [x23]
	mov	w3, #128
	bfxil	w3, w20, #0, #5
	mov	x0, x22
	mov	w2, #80
	blr	x8
	cbnz	w0, LBB0_10
; %bb.7:
	and	w3, w20, #0x1f
	ldr	x0, [x19, #16]
	ldr	x4, [x0]
	ldr	w1, [x23]
	mov	w2, #82
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x4
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh13:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	ldr	w20, [x23]
Lloh15:
	adrp	x8, _set_ts_pin_seq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _set_ts_pin_seq@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_10
; %bb.13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_load_cfg_mem
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_TSOUT_IF_TS,8,3 ; @CXD2880_TNRDMD_TSOUT_IF_TS
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_CXD2880_IO_TGT_SYS,4,2         ; @CXD2880_IO_TGT_SYS
	.comm	_set_ts_pin_seq,4,2             ; @set_ts_pin_seq
.subsections_via_symbols
