	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meridian_dig_source_put
_meridian_dig_source_put:               ## @meridian_dig_source_put
	.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, %r12
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_OXYGEN_GPIO_DATA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_oxygen_read16
	movl	%eax, %r15d
	movq	_GPIO_MERIDIAN_DIG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_GPIO_MERIDIAN_DIG_BOARD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GPIO_MERIDIAN_DIG_EXT@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %ebx
	cmpl	%r15d, %ebx
	je	LBB0_5
## %bb.4:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_oxygen_write16
LBB0_5:
	xorl	%r12d, %r12d
	cmpl	%r15d, %ebx
	setne	%r12b
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_GPIO_DATA,4,2           ## @OXYGEN_GPIO_DATA
	.comm	_GPIO_MERIDIAN_DIG_MASK,4,2     ## @GPIO_MERIDIAN_DIG_MASK
	.comm	_GPIO_MERIDIAN_DIG_BOARD,4,2    ## @GPIO_MERIDIAN_DIG_BOARD
	.comm	_GPIO_MERIDIAN_DIG_EXT,4,2      ## @GPIO_MERIDIAN_DIG_EXT
	.no_dead_strip	_meridian_dig_source_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meridian_dig_source_put
_meridian_dig_source_put:               ; @meridian_dig_source_put
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x22, _OXYGEN_GPIO_DATA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OXYGEN_GPIO_DATA@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_oxygen_read16
	mov	x20, x0
Lloh2:
	adrp	x8, _GPIO_MERIDIAN_DIG_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO_MERIDIAN_DIG_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x21]
Lloh5:
	adrp	x10, _GPIO_MERIDIAN_DIG_BOARD@GOTPAGE
Lloh6:
	ldr	x10, [x10, _GPIO_MERIDIAN_DIG_BOARD@GOTPAGEOFF]
Lloh7:
	adrp	x11, _GPIO_MERIDIAN_DIG_EXT@GOTPAGE
Lloh8:
	ldr	x11, [x11, _GPIO_MERIDIAN_DIG_EXT@GOTPAGEOFF]
	ldr	x9, [x9]
	cmp	x9, #0
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w21, w9, w8
	cmp	w21, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_oxygen_write16
LBB0_2:
	cmp	w21, w20
	cset	w20, ne
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_GPIO_DATA,4,2           ; @OXYGEN_GPIO_DATA
	.comm	_GPIO_MERIDIAN_DIG_MASK,4,2     ; @GPIO_MERIDIAN_DIG_MASK
	.comm	_GPIO_MERIDIAN_DIG_BOARD,4,2    ; @GPIO_MERIDIAN_DIG_BOARD
	.comm	_GPIO_MERIDIAN_DIG_EXT,4,2      ; @GPIO_MERIDIAN_DIG_EXT
	.no_dead_strip	_meridian_dig_source_put
.subsections_via_symbols
