	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx150x_maybe_swizzle
_sx150x_maybe_swizzle:                  ## @sx150x_maybe_swizzle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	movq	(%rdi), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_5
## %bb.1:
	cmpl	$16, 4(%rcx)
	jne	LBB0_5
## %bb.2:
	movq	8(%rcx), %rcx
	movq	_SX150X_123@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	movq	_SX150X_456@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
LBB0_5:
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %ecx
	andl	$-16776961, %ecx                ## imm = 0xFF0000FF
	movl	%eax, %edx
	shll	$8, %edx
	andl	$16711680, %edx                 ## imm = 0xFF0000
	orl	%ecx, %edx
	shrl	$8, %eax
	andl	$65280, %eax                    ## imm = 0xFF00
	orl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SX150X_123,8,3                 ## @SX150X_123
	.comm	_SX150X_456,8,3                 ## @SX150X_456
	.no_dead_strip	_sx150x_maybe_swizzle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx150x_maybe_swizzle
_sx150x_maybe_swizzle:                  ; @sx150x_maybe_swizzle
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, w1
	b.ne	LBB0_4
; %bb.1:
	ldr	w9, [x8, #4]
	cmp	w9, #16
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _SX150X_123@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SX150X_123@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SX150X_456@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SX150X_456@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
	lsr	w8, w2, #8
	and	w9, w2, #0xff0000ff
	bfi	w9, w8, #16, #8
	and	w8, w8, #0xff00
	orr	w2, w9, w8
LBB0_4:
	mov	x0, x2
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SX150X_123,8,3                 ; @SX150X_123
	.comm	_SX150X_456,8,3                 ; @SX150X_456
	.no_dead_strip	_sx150x_maybe_swizzle
.subsections_via_symbols
