	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_gpio_get_function
_bcm_gpio_get_function:                 ## @bcm_gpio_get_function
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	%esi, %r15
	imulq	$1717986919, %r15, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	leal	(%rbx,%rbx), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r15d
	callq	_BCM_GPIO_LOCK
	movl	%ebx, %edi
	callq	_BCM_GPIO_GPFSEL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_BCM_GPIO_READ
	movl	%eax, %ebx
	leal	(%r15,%r15,2), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	andl	$7, %ebx
	movq	%r14, %rdi
	callq	_BCM_GPIO_UNLOCK
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bcm_gpio_get_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_gpio_get_function
_bcm_gpio_get_function:                 ; @bcm_gpio_get_function
	.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	x19, x0
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w20, w8, w9
	mov	w8, #-10
	madd	w8, w20, w8, w1
	add	w21, w8, w8, lsl #1
	bl	_BCM_GPIO_LOCK
	mov	x0, x20
	bl	_BCM_GPIO_GPFSEL
	mov	x1, x0
	mov	x0, x19
	bl	_BCM_GPIO_READ
	asr	w8, w0, w21
	and	w20, w8, #0x7
	mov	x0, x19
	bl	_BCM_GPIO_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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bcm_gpio_get_function
.subsections_via_symbols
