	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxp_74hc153_get_value
_nxp_74hc153_get_value:                 ## @nxp_74hc153_get_value
	.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
	movl	%esi, %r13d
	callq	_gpio_to_nxp
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movq	_NXP_74HC153_S0_MASK@GOTPCREL(%rip), %rax
	movq	_NXP_74HC153_S1_MASK@GOTPCREL(%rip), %rcx
	movq	_NXP_74HC153_BANK_MASK@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%r13d, %edx
	sete	%sil
	movl	(%r14,%rsi,4), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movl	(%rcx), %ecx
	andl	%r13d, %ecx
	setne	%r12b
	xorl	%ebx, %ebx
	andl	(%rax), %r13d
	setne	%bl
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	12(%r14), %edi
	movl	%ebx, %esi
	callq	_gpio_set_value
	movl	8(%r14), %edi
	movl	%r12d, %esi
	callq	_gpio_set_value
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_gpio_get_value
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NXP_74HC153_S0_MASK,4,2        ## @NXP_74HC153_S0_MASK
	.comm	_NXP_74HC153_S1_MASK,4,2        ## @NXP_74HC153_S1_MASK
	.comm	_NXP_74HC153_BANK_MASK,4,2      ## @NXP_74HC153_BANK_MASK
	.no_dead_strip	_nxp_74hc153_get_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nxp_74hc153_get_value
_nxp_74hc153_get_value:                 ; @nxp_74hc153_get_value
	.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
	mov	x19, x1
	bl	_gpio_to_nxp
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _NXP_74HC153_S0_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NXP_74HC153_S0_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NXP_74HC153_S1_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NXP_74HC153_S1_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _NXP_74HC153_BANK_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NXP_74HC153_BANK_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w19
	cset	w10, eq
	ldr	w21, [x23, w10, uxtw #2]
	tst	w9, w19
	cset	w22, ne
	tst	w8, w19
	cset	w19, ne
	bl	_mutex_lock
	ldr	w0, [x23, #12]
	mov	x1, x19
	bl	_gpio_set_value
	ldr	w0, [x23, #8]
	mov	x1, x22
	bl	_gpio_set_value
	mov	x0, x21
	bl	_gpio_get_value
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NXP_74HC153_S0_MASK,4,2        ; @NXP_74HC153_S0_MASK
	.comm	_NXP_74HC153_S1_MASK,4,2        ; @NXP_74HC153_S1_MASK
	.comm	_NXP_74HC153_BANK_MASK,4,2      ; @NXP_74HC153_BANK_MASK
	.no_dead_strip	_nxp_74hc153_get_value
.subsections_via_symbols
