	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_gpio                  ## -- Begin function cxd2820r_gpio
	.p2align	4, 0x90
_cxd2820r_gpio:                         ## @cxd2820r_gpio
	.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
	movq	%rsi, %r14
	movq	8(%rdi), %rbx
	movq	16(%rbx), %rax
	movq	(%rax), %r12
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	(%r14), %eax
	movq	_CXD2820R_GPIO_E@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movl	(%rdx), %ecx
	movq	%rdx, %r13
	andl	%eax, %ecx
	setne	%bl
	shll	$6, %ebx
	leal	64(%rbx), %ecx
	movq	_CXD2820R_GPIO_I@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movl	(%rsi), %esi
	andl	%eax, %esi
	setne	%dl
	movq	_CXD2820R_GPIO_H@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	andl	(%rdi), %eax
	setne	%sil
	leal	(%rsi,%rdx,8), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	4(%r14), %eax
	xorl	%ecx, %ecx
	movl	(%r13), %edx
	andl	%eax, %edx
	setne	%cl
	shll	$4, %ecx
	leal	(%rcx,%rbx), %r13d
	addl	$64, %r13d
	addl	%ebx, %ecx
	addl	$80, %ecx
	xorl	%edx, %edx
	movq	_CXD2820R_GPIO_I@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	setne	%dl
	shll	$4, %edx
	orl	%r15d, %edx
	xorl	%esi, %esi
	movq	_CXD2820R_GPIO_H@GOTPCREL(%rip), %r15
	andl	(%r15), %eax
	setne	%sil
	leal	(%rdx,%rsi,2), %ebx
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r14), %eax
	xorl	%ecx, %ecx
	movq	_CXD2820R_GPIO_E@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	setne	%cl
	leal	20(%r13,%rcx,4), %r13d
	xorl	%ecx, %ecx
	movq	_CXD2820R_GPIO_I@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	setne	%cl
	shll	$5, %ecx
	orl	%ebx, %ecx
	xorl	%edx, %edx
	andl	(%r15), %eax
	setne	%dl
	leal	(%rcx,%rdx,4), %r15d
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	12(%r14), %eax
	movq	_CXD2820R_GPIO_E@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	sbbl	$0, %r13d
	addl	$2, %r13d
	xorl	%ecx, %ecx
	movq	_CXD2820R_GPIO_I@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	setne	%cl
	shll	$6, %ecx
	xorl	%ebx, %ebx
	movq	_CXD2820R_GPIO_H@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	setne	%bl
	shll	$3, %ebx
	orl	%ecx, %ebx
	orl	%r15d, %ebx
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movl	$137, %esi
	movl	$252, %edx
	movl	%r13d, %ecx
	callq	_regmap_update_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movl	$142, %esi
	movl	$63, %edx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delivery_system=%d\n"

	.comm	_CXD2820R_GPIO_E,4,2            ## @CXD2820R_GPIO_E
	.comm	_CXD2820R_GPIO_I,4,2            ## @CXD2820R_GPIO_I
	.comm	_CXD2820R_GPIO_H,4,2            ## @CXD2820R_GPIO_H
L_.str.1:                               ## @.str.1
	.asciz	"gpio i=%d %02x %02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"wr gpio=%02x %02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_gpio                  ; -- Begin function cxd2820r_gpio
	.p2align	2
_cxd2820r_gpio:                         ; @cxd2820r_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x24, [x0, #8]
	ldr	x8, [x24, #16]
	ldr	x20, [x8]
	ldr	w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x23, _CXD2820R_GPIO_E@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CXD2820R_GPIO_E@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	w9, [x23]
Lloh4:
	adrp	x22, _CXD2820R_GPIO_I@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CXD2820R_GPIO_I@GOTPAGEOFF]
	ldr	w10, [x22]
	tst	w10, w8
	cset	w10, ne
Lloh6:
	adrp	x25, _CXD2820R_GPIO_H@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CXD2820R_GPIO_H@GOTPAGEOFF]
	ldr	w11, [x25]
	tst	w11, w8
	cset	w26, ne
	tst	w9, w8
	mov	w8, #128
	mov	w9, #64
	csel	w28, w9, w8, eq
	bfi	w26, w10, #3, #1
	csel	x8, x9, x8, eq
	stp	x8, x26, [sp]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_dev_dbg
	ldr	w8, [x19, #4]
	ldr	w9, [x23]
	tst	w9, w8
	mov	w9, #32
	mov	w10, #16
	csel	w9, w10, w9, eq
	orr	w28, w9, w28
	ldr	w9, [x22]
	tst	w9, w8
	cset	w9, ne
	bfi	w26, w9, #4, #1
	ldr	w9, [x25]
	tst	w9, w8
	cset	w8, ne
	bfi	w26, w8, #1, #1
	mov	x8, x26
	stp	x28, x8, [sp]
	mov	w27, #1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_dev_dbg
	ldr	w8, [x19, #8]
	ldr	w9, [x23]
	tst	w9, w8
	mov	w9, #8
	mov	w10, #4
	csel	w9, w10, w9, eq
	orr	w28, w9, w28
	ldr	w9, [x22]
	tst	w9, w8
	cset	w9, ne
	bfi	w26, w9, #5, #1
	ldr	w9, [x25]
	tst	w9, w8
	cset	w8, ne
	bfi	w26, w8, #2, #1
	mov	x8, x26
	stp	x28, x8, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	bl	_dev_dbg
	ldr	w8, [x19, #12]
	ldr	w9, [x23]
	tst	w9, w8
	cinc	w9, w27, ne
	orr	w23, w9, w28
	ldr	w9, [x22]
	tst	w9, w8
	cset	w9, ne
	orr	w9, w26, w9, lsl #6
	ldr	w10, [x25]
	tst	w10, w8
	cset	w8, ne
	orr	w22, w9, w8, lsl #3
	stp	x23, x22, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #3
	bl	_dev_dbg
	str	x22, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_dbg
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	mov	w1, #137
	mov	w2, #252
	mov	x3, x23
	bl	_regmap_update_bits
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	mov	w1, #142
	mov	w2, #63
	mov	x3, x22
	bl	_regmap_update_bits
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_3:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_dbg
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x24]
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delivery_system=%d\n"

	.comm	_CXD2820R_GPIO_E,4,2            ; @CXD2820R_GPIO_E
	.comm	_CXD2820R_GPIO_I,4,2            ; @CXD2820R_GPIO_I
	.comm	_CXD2820R_GPIO_H,4,2            ; @CXD2820R_GPIO_H
l_.str.1:                               ; @.str.1
	.asciz	"gpio i=%d %02x %02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"wr gpio=%02x %02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed=%d\n"

.subsections_via_symbols
