	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_gpio_write      ## -- Begin function cxd2880_tnrdmd_gpio_write
	.p2align	4, 0x90
_cxd2880_tnrdmd_gpio_write:             ## @cxd2880_tnrdmd_gpio_write
	.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_4
## %bb.1:
	cmpl	$3, %esi
	jge	LBB0_4
## %bb.2:
	movl	%edx, %r8d
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_STATE_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r9d
	movl	%esi, %ecx
	shll	%cl, %r9d
	testl	%r8d, %r8d
	cmovnel	%r9d, %r8d
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$70, %ecx
	popq	%rbp
	jmp	_cxd2880_tnrdmd_set_and_save_reg_bits ## TAILCALL
	.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_IO_TGT_SYS,4,2         ## @CXD2880_IO_TGT_SYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_gpio_write      ; -- Begin function cxd2880_tnrdmd_gpio_write
	.p2align	2
_cxd2880_tnrdmd_gpio_write:             ; @cxd2880_tnrdmd_gpio_write
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w1, #3
	b.ge	LBB0_4
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w5, w9, w1
	cmp	w2, #0
	csel	w4, wzr, w5, eq
	mov	x1, x8
	mov	w2, #0
	mov	w3, #70
	b	_cxd2880_tnrdmd_set_and_save_reg_bits
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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_IO_TGT_SYS,4,2         ; @CXD2880_IO_TGT_SYS
.subsections_via_symbols
