	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_pinctrl_fsel_get
_bcm2835_pinctrl_fsel_get:              ## @bcm2835_pinctrl_fsel_get
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_FSEL_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcm2835_gpio_rd
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	_FSEL_SHIFT
	movl	%r15d, %ebx
	movl	%eax, %ecx
	sarl	%cl, %ebx
	movq	_BCM2835_FSEL_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	(%r14), %edi
	movq	_bcm2835_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_dev_dbg
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_FSEL_MASK,4,2          ## @BCM2835_FSEL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get %08x (%u => %s)\n"

	.comm	_bcm2835_functions,8,3          ## @bcm2835_functions
	.no_dead_strip	_bcm2835_pinctrl_fsel_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_pinctrl_fsel_get
_bcm2835_pinctrl_fsel_get:              ; @bcm2835_pinctrl_fsel_get
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_FSEL_REG
	mov	x1, x0
	mov	x0, x20
	bl	_bcm2835_gpio_rd
	mov	x21, x0
	mov	x0, x19
	bl	_FSEL_SHIFT
	asr	w8, w21, w0
Lloh0:
	adrp	x9, _BCM2835_FSEL_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCM2835_FSEL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w22, w8, w9
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _bcm2835_functions@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bcm2835_functions@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w4, [x8, w22, uxtw #2]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_dev_dbg
	mov	x0, x22
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_FSEL_MASK,4,2          ; @BCM2835_FSEL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get %08x (%u => %s)\n"

	.comm	_bcm2835_functions,8,3          ; @bcm2835_functions
	.no_dead_strip	_bcm2835_pinctrl_fsel_get
.subsections_via_symbols
