	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_validate_chipaccess
_b43_validate_chipaccess:               ## @b43_validate_chipaccess
	.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
	movq	%rdi, %rbx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_b43_shm_read32
	movl	%eax, %r12d
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_b43_shm_read32
	movl	%eax, %r15d
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1437248085, %ecx               ## imm = 0x55AAAA55
	callq	_b43_shm_write32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_b43_shm_read32
	cmpl	$1437248085, %eax               ## imm = 0x55AAAA55
	jne	LBB0_13
## %bb.1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$-1437248086, %ecx              ## imm = 0xAA5555AA
	callq	_b43_shm_write32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_b43_shm_read32
	cmpl	$-1437248086, %eax              ## imm = 0xAA5555AA
	jne	LBB0_13
## %bb.2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4386, %ecx                     ## imm = 0x1122
	callq	_b43_shm_write16
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	$13124, %ecx                    ## imm = 0x3344
	callq	_b43_shm_write16
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$21862, %ecx                    ## imm = 0x5566
	callq	_b43_shm_write16
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$6, %edx
	movl	$30600, %ecx                    ## imm = 0x7788
	callq	_b43_shm_write16
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_b43_shm_read32
	cmpl	$1432761156, %eax               ## imm = 0x55663344
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43warn
LBB0_4:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	$-1430532899, %ecx              ## imm = 0xAABBCCDD
	callq	_b43_shm_write32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_b43_shm_read16
	cmpl	$4386, %eax                     ## imm = 0x1122
	jne	LBB0_8
## %bb.5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_b43_shm_read16
	cmpl	$52445, %eax                    ## imm = 0xCCDD
	jne	LBB0_8
## %bb.6:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_b43_shm_read16
	cmpl	$43707, %eax                    ## imm = 0xAABB
	jne	LBB0_8
## %bb.7:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_b43_shm_read16
	cmpl	$30600, %eax                    ## imm = 0x7788
	je	LBB0_9
LBB0_8:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_b43warn
LBB0_9:
	movl	(%r14), %esi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_b43_shm_write32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	%r15d, %ecx
	callq	_b43_shm_write32
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	addl	$-3, %eax
	cmpl	$7, %eax
	ja	LBB0_12
## %bb.10:
	movq	_B43_MMIO_TSF_CFP_START@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$43690, %edx                    ## imm = 0xAAAA
	callq	_b43_write16
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$-858997829, %edx               ## imm = 0xCCCCBBBB
	callq	_b43_write32
	movq	_B43_MMIO_TSF_CFP_START_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43_read16
	cmpl	$48059, %eax                    ## imm = 0xBBBB
	jne	LBB0_13
## %bb.11:
	movq	_B43_MMIO_TSF_CFP_START_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43_read16
	cmpl	$52428, %eax                    ## imm = 0xCCCC
	jne	LBB0_13
LBB0_12:
	movq	_B43_MMIO_TSF_CFP_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_b43_write32
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43_read32
	movq	_B43_MACCTL_GMODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %eax
	movq	_B43_MACCTL_IHR_ENABLED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_14
LBB0_13:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_b43err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unaligned 32bit SHM read access is broken\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unaligned 32bit SHM write access is broken\n"

	.comm	_B43_MMIO_TSF_CFP_START,4,2     ## @B43_MMIO_TSF_CFP_START
	.comm	_B43_MMIO_TSF_CFP_START_LOW,4,2 ## @B43_MMIO_TSF_CFP_START_LOW
	.comm	_B43_MMIO_TSF_CFP_START_HIGH,4,2 ## @B43_MMIO_TSF_CFP_START_HIGH
	.comm	_B43_MMIO_MACCTL,4,2            ## @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_GMODE,4,2           ## @B43_MACCTL_GMODE
	.comm	_B43_MACCTL_IHR_ENABLED,4,2     ## @B43_MACCTL_IHR_ENABLED
L_.str.2:                               ## @.str.2
	.asciz	"Failed to validate the chipaccess\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_b43_validate_chipaccess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_validate_chipaccess
_b43_validate_chipaccess:               ; @b43_validate_chipaccess
	.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, x0
Lloh0:
	adrp	x22, _B43_SHM_SHARED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B43_SHM_SHARED@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_b43_shm_read32
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #4
	bl	_b43_shm_read32
	mov	x21, x0
	ldr	w1, [x22]
	mov	w23, #43605
	movk	w23, #21930, lsl #16
	mov	x0, x19
	mov	w2, #0
	mov	w3, #43605
	movk	w3, #21930, lsl #16
	bl	_b43_shm_write32
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_b43_shm_read32
	cmp	w0, w23
	b.ne	LBB0_13
; %bb.1:
	ldr	w1, [x22]
	mov	w23, #21930
	movk	w23, #43605, lsl #16
	mov	x0, x19
	mov	w2, #0
	mov	w3, #21930
	movk	w3, #43605, lsl #16
	bl	_b43_shm_write32
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_b43_shm_read32
	cmp	w0, w23
	b.ne	LBB0_13
; %bb.2:
	ldr	w1, [x22]
	mov	w23, #4386
	mov	x0, x19
	mov	w2, #0
	mov	w3, #4386
	bl	_b43_shm_write16
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #13124
	bl	_b43_shm_write16
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #21862
	bl	_b43_shm_write16
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #6
	mov	w3, #30600
	bl	_b43_shm_write16
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #2
	bl	_b43_shm_read32
	mov	w8, #13124
	movk	w8, #21862, lsl #16
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43warn
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #52445
	movk	w3, #43707, lsl #16
	bl	_b43_shm_write32
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_b43_shm_read16
	cmp	w0, w23
	b.ne	LBB0_8
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #2
	bl	_b43_shm_read16
	mov	w8, #52445
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #4
	bl	_b43_shm_read16
	mov	w8, #43707
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #6
	bl	_b43_shm_read16
	mov	w8, #30600
	cmp	w0, w8
	b.eq	LBB0_9
LBB0_8:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_b43warn
LBB0_9:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_b43_shm_write32
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #4
	mov	x3, x21
	bl	_b43_shm_write32
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	sub	w8, w8, #3
Lloh6:
	adrp	x20, _B43_MMIO_TSF_CFP_START@GOTPAGE
Lloh7:
	ldr	x20, [x20, _B43_MMIO_TSF_CFP_START@GOTPAGEOFF]
	cmp	w8, #7
	b.hi	LBB0_12
; %bb.10:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #43690
	bl	_b43_write16
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #48059
	movk	w2, #52428, lsl #16
	bl	_b43_write32
Lloh8:
	adrp	x8, _B43_MMIO_TSF_CFP_START_LOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B43_MMIO_TSF_CFP_START_LOW@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_read16
	mov	w8, #48059
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.11:
Lloh11:
	adrp	x8, _B43_MMIO_TSF_CFP_START_HIGH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43_MMIO_TSF_CFP_START_HIGH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_read16
	mov	w8, #52428
	cmp	w0, w8
	b.ne	LBB0_13
LBB0_12:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_b43_write32
Lloh14:
	adrp	x8, _B43_MMIO_MACCTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B43_MMIO_MACCTL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_read32
	mov	x8, x0
	mov	w0, #0
Lloh17:
	adrp	x9, _B43_MACCTL_GMODE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _B43_MACCTL_GMODE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x10, _B43_MACCTL_IHR_ENABLED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _B43_MACCTL_IHR_ENABLED@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w8, w9
	b.eq	LBB0_14
LBB0_13:
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_b43err
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unaligned 32bit SHM read access is broken\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unaligned 32bit SHM write access is broken\n"

	.comm	_B43_MMIO_TSF_CFP_START,4,2     ; @B43_MMIO_TSF_CFP_START
	.comm	_B43_MMIO_TSF_CFP_START_LOW,4,2 ; @B43_MMIO_TSF_CFP_START_LOW
	.comm	_B43_MMIO_TSF_CFP_START_HIGH,4,2 ; @B43_MMIO_TSF_CFP_START_HIGH
	.comm	_B43_MMIO_MACCTL,4,2            ; @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_GMODE,4,2           ; @B43_MACCTL_GMODE
	.comm	_B43_MACCTL_IHR_ENABLED,4,2     ; @B43_MACCTL_IHR_ENABLED
l_.str.2:                               ; @.str.2
	.asciz	"Failed to validate the chipaccess\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_b43_validate_chipaccess
.subsections_via_symbols
