	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sigbus_action
_sigbus_action:                         ## @sigbus_action
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movl	(%rsi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_sig_debug
	movl	12(%rbx), %edi
	movq	_SIGBUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ATF_REQUIRE_EQ
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_ATF_REQUIRE_EQ
	movl	4(%rbx), %edi
	movq	_BUS_ADRALN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ATF_REQUIRE_EQ
	leaq	L_.str.1(%rip), %rdi
	callq	_atf_tc_expect_fail
	movl	(%rbx), %edi
	movq	_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ATF_REQUIRE_EQ
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atf_tc_pass                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"si_addr = %p\n"

	.comm	_SIGBUS,8,3                     ## @SIGBUS
	.comm	_BUS_ADRALN,8,3                 ## @BUS_ADRALN
L_.str.1:                               ## @.str.1
	.asciz	"x86 architecture does not correctly report the address where the unaligned access occured"

	.comm	_addr,8,3                       ## @addr
	.no_dead_strip	_sigbus_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sigbus_action
_sigbus_action:                         ; @sigbus_action
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w1, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sig_debug
	ldr	w0, [x20, #12]
Lloh2:
	adrp	x8, _SIGBUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIGBUS@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	bl	_ATF_REQUIRE_EQ
	ldr	w0, [x20, #8]
	mov	x1, #0
	bl	_ATF_REQUIRE_EQ
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x8, _BUS_ADRALN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUS_ADRALN@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	bl	_ATF_REQUIRE_EQ
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _addr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _addr@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	bl	_ATF_REQUIRE_EQ
	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
	b	_atf_tc_pass
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"si_addr = %p\n"

	.comm	_SIGBUS,8,3                     ; @SIGBUS
	.comm	_BUS_ADRALN,8,3                 ; @BUS_ADRALN
	.comm	_addr,8,3                       ; @addr
	.no_dead_strip	_sigbus_action
.subsections_via_symbols
