	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_postproc
_stb0899_postproc:                      ## @stb0899_postproc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	shlq	$4, %rsi
	movq	(%rcx,%rsi), %r8
	movq	_STB0899_GPIOPULLUP@GOTPCREL(%rip), %r9
	xorl	%eax, %eax
	xorl	%r10d, %r10d
	cmpq	(%r9), %r8
	sete	%al
	setne	%r10b
	testl	%edx, %edx
	movl	8(%rcx,%rsi), %esi
	cmovnel	%r10d, %eax
	shll	$7, %eax
	orl	$2, %eax
	movl	%eax, %edx
	callq	_stb0899_write_reg
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STB0899_GPIOPULLUP,8,3         ## @STB0899_GPIOPULLUP
	.no_dead_strip	_stb0899_postproc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_postproc
_stb0899_postproc:                      ; @stb0899_postproc
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x8, x8, x1, lsl #4
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _STB0899_GPIOPULLUP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _STB0899_GPIOPULLUP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w1, [x8, #8]
	cmp	x9, x10
	mov	w8, #130
	mov	w9, #2
	csel	w10, w9, w8, eq
	csel	w8, w8, w9, eq
	cmp	w2, #0
	csel	w2, w8, w10, eq
	bl	_stb0899_write_reg
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STB0899_GPIOPULLUP,8,3         ; @STB0899_GPIOPULLUP
	.no_dead_strip	_stb0899_postproc
.subsections_via_symbols
