	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_pinctrl_fsel_set
_bcm2835_pinctrl_fsel_set:              ## @bcm2835_pinctrl_fsel_set
	.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	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_FSEL_REG
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcm2835_gpio_rd
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_FSEL_SHIFT
	movl	%r12d, %r13d
	movl	%eax, %ecx
	sarl	%cl, %r13d
	movq	_BCM2835_FSEL_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movl	(%rbx), %edi
	movq	_bcm2835_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_dev_dbg
	cmpl	%r15d, %r13d
	jne	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_BCM2835_FSEL_GPIO_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	je	LBB0_4
## %bb.2:
	cmpl	%r15d, %eax
	movq	_BCM2835_FSEL_MASK@GOTPCREL(%rip), %rax
	je	LBB0_5
## %bb.3:
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_FSEL_SHIFT
	movl	%eax, %ecx
	shll	%cl, %r13d
	notl	%r13d
	andl	%r13d, %r12d
	movq	_BCM2835_FSEL_GPIO_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_FSEL_SHIFT
	movl	%eax, %ecx
	shll	%cl, %r13d
	orl	%r13d, %r12d
	movl	(%rbx), %edi
	movq	_bcm2835_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_BCM2835_FSEL_GPIO_IN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_dev_dbg
	movl	%r14d, %edi
	callq	_FSEL_REG
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_bcm2835_gpio_wr
LBB0_4:
	movq	_BCM2835_FSEL_MASK@GOTPCREL(%rip), %rax
LBB0_5:
	movq	%rbx, %r13
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_FSEL_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movl	%r14d, %edi
	callq	_FSEL_SHIFT
	movl	%r15d, %edx
	movl	%eax, %ecx
	shll	%cl, %r15d
	orl	%ebx, %r15d
	movl	(%r13), %edi
	movq	_bcm2835_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %r8d
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dev_dbg
	movl	%r14d, %edi
	callq	_FSEL_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcm2835_gpio_wr                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_FSEL_MASK,4,2          ## @BCM2835_FSEL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read %08x (%u => %s)\n"

	.comm	_bcm2835_functions,8,3          ## @bcm2835_functions
	.comm	_BCM2835_FSEL_GPIO_IN,4,2       ## @BCM2835_FSEL_GPIO_IN
L_.str.1:                               ## @.str.1
	.asciz	"trans %08x (%u <= %s)\n"

L_.str.2:                               ## @.str.2
	.asciz	"write %08x (%u <= %s)\n"

	.no_dead_strip	_bcm2835_pinctrl_fsel_set
.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_set
_bcm2835_pinctrl_fsel_set:              ; @bcm2835_pinctrl_fsel_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_FSEL_REG
	mov	x1, x0
	mov	x0, x19
	bl	_bcm2835_gpio_rd
	mov	x22, x0
	mov	x0, x20
	bl	_FSEL_SHIFT
	asr	w8, w22, w0
Lloh0:
	adrp	x24, _BCM2835_FSEL_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BCM2835_FSEL_MASK@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w26, w8, w9
	ldr	w0, [x19]
Lloh2:
	adrp	x23, _bcm2835_functions@GOTPAGE
Lloh3:
	ldr	x23, [x23, _bcm2835_functions@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w4, [x8, w26, uxtw #2]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x20
	bl	_dev_dbg
	cmp	w26, w21
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x25, _BCM2835_FSEL_GPIO_IN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BCM2835_FSEL_GPIO_IN@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w26, w8
	ccmp	w8, w21, #4, ne
	b.eq	LBB0_4
; %bb.3:
	ldr	w26, [x24]
	mov	x0, x20
	bl	_FSEL_SHIFT
	lsl	w8, w26, w0
	bic	w22, w22, w8
	ldr	w26, [x25]
	mov	x0, x20
	bl	_FSEL_SHIFT
	lsl	w8, w26, w0
	orr	w22, w8, w22
	ldr	w0, [x19]
	ldr	x8, [x23]
	ldrsw	x9, [x25]
	ldr	w4, [x8, x9, lsl #2]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x20
	bl	_dev_dbg
	mov	x0, x20
	bl	_FSEL_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_bcm2835_gpio_wr
LBB0_4:
	ldr	w24, [x24]
	mov	x0, x20
	bl	_FSEL_SHIFT
	lsl	w8, w24, w0
	bic	w22, w22, w8
	mov	x0, x20
	bl	_FSEL_SHIFT
	lsl	w8, w21, w0
	orr	w22, w22, w8
	ldr	w0, [x19]
	ldr	x8, [x23]
	ldr	w4, [x8, w21, uxtw #2]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	mov	x3, x20
	bl	_dev_dbg
	mov	x0, x20
	bl	_FSEL_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_bcm2835_gpio_wr
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_FSEL_MASK,4,2          ; @BCM2835_FSEL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read %08x (%u => %s)\n"

	.comm	_bcm2835_functions,8,3          ; @bcm2835_functions
	.comm	_BCM2835_FSEL_GPIO_IN,4,2       ; @BCM2835_FSEL_GPIO_IN
l_.str.1:                               ; @.str.1
	.asciz	"trans %08x (%u <= %s)\n"

l_.str.2:                               ; @.str.2
	.asciz	"write %08x (%u <= %s)\n"

	.no_dead_strip	_bcm2835_pinctrl_fsel_set
.subsections_via_symbols
